Overview of Prometheus Pushgateway
masterThe Prometheus Pushgateway is a metrics cache designed for ephemeral and batch jobs that cannot be scraped directly by Prometheus because they do not exist long enough. Instead of Prometheus scraping these jobs, the jobs push their metrics to the Pushgateway, which then exposes them for Prometheus to scrape.
Key Characteristics:
- Metrics Cache: It acts as a cache for metrics, not an aggregator or distributed counter. Metrics pushed are identical to those presented by a permanently running program.
- Service-level Metrics: It is intended for service-level metrics. For machine-level metrics, the Node Exporter
textfilecollector is recommended. - No TTL/Timeout: The Pushgateway does not implement a timeout or Time-To-Live (TTL) for pushed metrics.