Hello ,
I'am using prometheus agent-mode to send metrics to the centrllized one ,
and i want to filter metrics based on cluster. for example
up{cluster="agent-cluster} or up{cluster="central-cluster}
i added this to agent-prom:
prometheus:
prometheusSpec:
externalLabels:
cluster: agent-cluster
BUT it does not work for the central one cause its not sending metrics to
another system now i can only do up{cluster=agent-cluster}.
I tried adding this to every job but it didnt work and they disapeared from
prometheus targets.
prometheus-node-exporter:
prometheus:
monitor:
metricRelabelings:
- target_label: "cluster"
replacement: "central-cluster"
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/b1401e0c-6008-4bf1-b8ee-2a96e378320dn%40googlegroups.com.