Closed Abuelodelanada closed 3 months ago
Nowadays our prometheus config only have:
global: evaluation_interval: 1m scrape_interval: 1m scrape_timeout: 10s
In HA deployments this is a problem if you need to distinguish the replicas of a set when talking to external systems.
To solve this we can add external_label.replica to global config, like this:
external_label.replica
global
global: evaluation_interval: 1m scrape_interval: 1m scrape_timeout: 10s external_labels: replica: my-model-prometheus-0 # my-model-prometheus-1 for the second replica.
Enhancement Proposal
Nowadays our prometheus config only have:
In HA deployments this is a problem if you need to distinguish the replicas of a set when talking to external systems.
To solve this we can add
external_label.replica
toglobal
config, like this: