Please implement ability to set external_labels globally to vmalert (same functionality as in vmagent https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config).
This feature required for adding additional labels (e.g. cluster name, location, ...) to each recording rule.
Hi @ofen! vmalert allows to specify multiple rule files. Is your intention to set external labels per-file so all the groups in that file would inherit labels? Or you assume some global configuration applied to every configured file?
Hi @ofen!
vmalertallows to specify multiple rule files. Is your intention to set external labels per-file so all the groups in that file would inherit labels? Or you assume some global configuration applied to every configured file?
Hi @hagen1778 , I assume global for each configured file. In our current set-up we have vmalert in each cluster (to have separate configuration per cluster) that processing recording rules on remote VictoriaMetrics DB and send it back after processing. We are adding cluster specific labels (name, type, location) to each recording rules but we would like to have ability to apply those cluster wide labels per vmalert instead of per rule.
Also I noticed that Prometheus adding global labels (external_labels) to alerts too (it's useful when you can add labels to know from which cluster you got alert)
Most helpful comment
Also I noticed that Prometheus adding global labels (external_labels) to alerts too (it's useful when you can add labels to know from which cluster you got alert)