I'm already relabeling other things, but the datname
is not working.
relabel_configs:
- source_labels: [datname]
regex: "Prefix-.+"
replacement: "Static"
target_label: datname
The datname
label is also not present in service discovery. Can this be relabeled?
Yes, it's possible, but it needs to be done in the
metric_relabel_configs
part, see https://grafana.com/docs/grafana-cloud/account-management/billing-and-usage/control-prometheus-metrics-usage/usage-reduction/ for more details. Summary copied here:So finally this is working: