> But I want to just drop metrics for node_systemd_unit_state that have the label 'name' match some specific patterns. name=~"*(pattern1|pattern2)*"
metric_relabel_configs:
- source_labels: [ __name__, name]
regex: 'node_systemd_unit_state;.*(pattern1|pattern2).*'
action: drop
Giving multiple source_labels concatenates the given labels, using a semicolon separator by default, and then the regex matches against the whole result.
(Aside: job name is mandatory, but it gets added to the metrics as the 'job' label, so it's worth giving it a meaningful name rather than "dummy")