justwatchcom / sql_exporter

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

config: add customizable metric name prefix #111

Open anitgandhi opened 12 months ago

anitgandhi commented 12 months ago

Previously, the metric name was always the query name, prefixed with sql_. Now, that remains the behavior if a prefix is not provided in the job config. An empty string may explicitly be provided, in which case sql_ is not prepended to the query name.