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.
More on Kubernetes & Multi-Cluster Observability
Which `kube-prometheus-stack` values do you always change before going to production?IntermediateOn a managed control plane (EKS, GKE, AKS), which default components and rules do you turn off?IntermediateOne Prometheus per cluster or one central Prometheus scraping every cluster?AdvancedKarpenter replaces nodes every few hours. How do you keep monitoring cheap and useful?AdvancedHow do you use metrics to right-size requests and limits across the cluster?IntermediateHow do you monitor GPU nodes running ML workloads?Intermediate