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

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 up and breaks per-instance health.
  • Scrape it with honor_labels: true so the job's labels win.

For Kubernetes Jobs, kube-state-metrics (kube_job_status_failed) often covers the need without any push.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Kubernetes & Multi-Cluster Observability