Interview Prep/Monitoring & Observability/Kubernetes & Multi-Cluster Observability

How do you make sure every series can be traced back to its cluster and environment?

BeginnerProductionKubernetes & Multi-Cluster Observability
Answer

Set externalLabels on every Prometheus. They are attached to series on remote_write, federation and to alerts sent to Alertmanager, without bloating the local TSDB.

prometheus:
  prometheusSpec:
    externalLabels:
      cluster: prod-eu-1
      env: prod
      region: eu-west-1

Agree on the label names organisation-wide (cluster, not k8s_cluster in one place and cluster_name in another), otherwise every global dashboard needs label_replace hacks. Include {{ $labels.cluster }} in alert titles so on-call knows where to look.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Kubernetes & Multi-Cluster Observability