justwatchcom / sql_exporter

Flexible SQL Exporter for Prometheus.
MIT License
402 stars 109 forks source link

Add parameter startup_sql #22

Closed xxorde closed 6 years ago

xxorde commented 6 years ago

I added a new parameter: _startupsql. _startupsql is an array of SQL statements, each statements is executed once after connecting. This is useful to set parameters or do preparation work for the monitoring.