Hello,

don't know exactly what the issue was - however this  is working now. 
Probably a visulization issue on my site with (bad) grafana query I used.

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|windows_exporter)"

action: keep

Alexander Wilke schrieb am Mittwoch, 17. April 2024 um 09:51:57 UTC+2:

> 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
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/48156fd2-fdba-4a81-a44c-1669d129de7fn%40googlegroups.com.

Reply via email to