albertodonato / query-exporter

Export Prometheus metrics from SQL queries
GNU General Public License v3.0
436 stars 101 forks source link

Is there a possibility to change query_latency settings? #191

Open SozinovD opened 5 months ago

SozinovD commented 5 months ago

Is your feature request related to a problem? Please describe. For now query_latency_bucket only shows detailed latency of queries that took less than 10 sec, if some of my queries took more - i won't be able to say if it was 11 sec or 120 sec

Describe the solution you'd like Maybe setting in 'general' section of config (i know it doesn't exist yet) or in 'database' section that allows to set custom bucket values, like for histogram metrics

Describe alternatives you've considered I didn't se an option for this in documentation

Additional context

albertodonato commented 5 months ago

Currently, buckets are defined statically. This would require adding an option to specify custom buckets.