When is the Pushgateway the right choice, and what are its production pitfalls?
IntermediateProductionKubernetes & Multi-Cluster Observability
Answer
Only for service-level batch jobs whose result is not tied to a machine, such as a nightly backup pushing backup_last_success_timestamp_seconds.
Pitfalls:
- It never forgets: a series pushed once stays until deleted, so a dead job looks healthy. Alert on the timestamp, not on a status gauge:
time() - backup_last_success_timestamp_seconds > 26*3600. - It is a single point of failure and a funnel; using it to proxy long-running services hides
upand breaks per-instance health. - Scrape it with
honor_labels: trueso the job's labels win.
For Kubernetes Jobs, kube-state-metrics (kube_job_status_failed) often covers the need without any push.
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