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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus Architecture