Hello I am using node_exporter and I am trying to drop all node_systemd_unit_state metrics except for a handful of services like (e.g.,) ssh and apache. How would I do this? I came up with the following, but I don't think this is correct because it will drop other metrics as well (metrics that are not related to systemd service)
metric_relabel_configs:
- source_labels: [__name__, name]
regex: 'node_systemd_unit_state;(ssh|apache).*'
action: keep
How do I drop all service metrics except for ssh and apache service?