How do you add synthetic (blackbox) monitoring to an internal Kubernetes platform?
BeginnerProductionKubernetes & Multi-Cluster Observability
Answer
Run the blackbox exporter and declare probes with the operator's Probe CRD. It tests from the outside in: DNS, TCP, TLS and HTTP status, which catches broken ingress or certs that internal metrics miss.
apiVersion: monitoring.coreos.com/v1
kind: Probe
metadata: { name: shop-public, namespace: observability }
spec:
interval: 30s
module: http_2xx
prober: { url: blackbox-exporter.observability.svc:9115 }
targets:
staticConfig: { static: ["https://shop.example.com/healthz"] }
Alert on probe_success == 0 for 3 minutes from at least two probe locations, so one bad probe network does not page.
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