Hello,
i have several prometheus agents doing remote write to another central prometheus Agent.
on this central prometheus agent I Do two remote_rewrite to two destinations.
Destination A should receive all metrics, this seems to work.
Destination B should only receive metrics from specific jobs.
the job names are:
windows_exporter
node_exporter
I tried several combinations but it looks like I still send all metrics to destination B:
In the example below there is only destination B.
remote_write:
- url: "
https://prometheus-q.domain.de:9009/api/v1/push"
basic_auth:
username: "tenant_02"
password: "tenant_02"
queue_config:
min_shards: 3
write_relabel_configs:
- source_labels: [job]
regex: "node_exporter"
action: keep
- source_labels: [job]
regex: "windows_exporter"
action: keep
- source_labels: [job]
regex: ".*"
action: drop