vmselect: add `path` label to vm_slow_queries_total
Author: hagen1778Created Oct 5, 2023Updated Sep 18, 2026
Labelsenhancementhelp wanted
Is your feature request related to a problem? Please describe
vmselect/vmsingle expose metric vm_slow_queries_total for detecting amount of queries that breached -search.logSlowQueryDuration threshold. However, the metric doesn't have any labels like path in it. Which makes slow /query and /export queries indistinguishable.
Describe the solution you'd like
Would be great to instrument vm_slow_queries_total metric with path label, so it can be used more efficiently in alerting rules.
Describe alternatives you've considered
No response
Additional information
No response
Source: VictoriaMetrics/VictoriaMetrics