I am trying to add a label to the mentioned metric from the grafana agent config. I have tried the static label config, the relabel configs and metric_relabel_configs blocks but no luck.
example:
relabel_configs:
- source_labels: [__address__]
target_label: group
replacement: "group1"
The new label shows up on many of the metrics but for whatever reason it doesn't show up in node_systemd_unit_state metric.
The reasoning for this is for alerting so that I can filter groups of nodes have their alerts to go specific contacts.