How do you give teams self-service alerting on a shared cluster without letting them break routing?
AdvancedProductionKubernetes & Multi-Cluster Observability
Answer
Use the operator's namespaced CRDs. Teams own PrometheusRule and AlertmanagerConfig objects in their namespace; the platform owns the global alertmanager.yaml. The operator automatically adds a namespace="<their-ns>" matcher to each AlertmanagerConfig route, so one team cannot capture another team's alerts.
apiVersion: monitoring.coreos.com/v1alpha1
kind: AlertmanagerConfig
metadata: { name: payments, namespace: payments, labels: { alertmanagerConfig: enabled } }
spec:
route: { receiver: payments-slack, groupBy: [alertname], matchers: [{ name: severity, value: warning }] }
receivers:
- name: payments-slack
slackConfigs:
- apiURL: { name: slack-webhook, key: url }
channel: "#payments-alerts"
Guard rails: admission policies (Kyverno or Gatekeeper) requiring runbook_url, CI running promtool, and per-tenant limits on rules.
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?AdvancedHow do you make sure every series can be traced back to its cluster and environment?BeginnerKarpenter 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?Intermediate