What are the pitfalls of the Pushgateway?

AdvancedConceptPrometheus Architecture
Answer
  • Metrics never expire: a job that stopped running still shows its last value forever unless you delete the group (curl -X DELETE .../metrics/job/db_backup).
  • You lose up health per job; the Pushgateway is up even if jobs are dead.
  • It is a single point of failure and bottleneck if many instances push.
  • Using it for long-running services just turns pull into a worse push.

So we push a last_success_timestamp and alert on time() - backup_last_success_timestamp_seconds > 90000, which works even when the job never ran.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus Architecture