What are `external_labels` used for?
IntermediateConceptPrometheus Architecture
Answer
external_labels in the global block are attached to every series and alert when data leaves this Prometheus: via federation, remote_write, Thanos sidecar uploads, or alerts sent to Alertmanager.
global:
external_labels:
cluster: prod-mumbai
replica: a
They identify the source in a global view and are required for HA deduplication. They are not stored in the local TSDB itself.
More on Prometheus Architecture
Describe the Prometheus architecture.BeginnerWhat does a basic prometheus.yml look like?BeginnerWhat is the `up` metric?BeginnerWhat are `job` and `instance` labels and where do they come from?BeginnerHow is the Prometheus TSDB organized on disk?AdvancedWhat is the WAL and why does Prometheus restart slowly sometimes?Advanced