# Prometheus Pushgateway

> Push acceptor for ephemeral and batch jobs

Source: https://talira.ai/catalog/prometheus-pushgateway-7q76cges
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure
- Categories: [devops / observability / metrics](https://talira.ai/categories/devops/observability/metrics)
- Platforms: linux, macos, windows, docker, kubernetes[^4][^7]
- Licence: Apache-2.0[^6]
- Pricing: Free and open source[^6]
- Pricing notes: Free and open source under Apache-2.0.
- Free tier: yes[^6]
- Self-hostable: yes[^4]
- API: yes[^4]
- Backed by: [Cloud Native Computing Foundation](https://talira.ai/orgs/cncf.md)
- Funding: non-profit[^8][^9]

The Pushgateway lets short-lived and batch jobs push their metrics over HTTP, holds them, and exposes them on its own /metrics endpoint for [Prometheus](https://talira.ai/catalog/prometheus-198e2rss.md) to scrape, since such jobs may finish before Prometheus could scrape them. Metrics are grouped by a key of labels starting with job, pushed with a client library's push function or plain [curl](https://talira.ai/catalog/curl-g1ayrmxb.md), replaced or deleted per group, and shown in a small web UI. The Prometheus docs recommend it only for capturing the outcome of service-level batch jobs: it is a metrics cache, not an aggregator or a way to make Prometheus push-based, and machine-level jobs are better served by the [Node exporter](https://talira.ai/catalog/node-exporter-ap8x6jmc.md)'s textfile collector. It is Apache-2.0 and part of Prometheus, a CNCF project.

## Links

- GitHub: https://github.com/prometheus/pushgateway
- Docs: https://prometheus.io/docs/practices/pushing/

## Ways to install

### On Kubernetes

- [Artifact Hub](https://talira.ai/catalog/artifact-hub-s43pzyps.md): <https://artifacthub.io/packages/helm/prometheus-community/prometheus-pushgateway>[^1][^2]

### Package managers

- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/prometheus-pushgateway>[^3]

## Problems it solves

- my nightly batch job finishes before Prometheus ever scrapes it, so its metrics are lost
- record when a service-level cleanup job last succeeded and alert if it hasn't run in a day
- push the number of records a data import processed into Prometheus at the end of the run
- send a metric from a shell script with curl without running an exporter
- get metrics from short-lived CI jobs or serverless functions into Prometheus
- track how long each run of a scheduled ETL pipeline took in Grafana
- push metrics from a Python or Go batch job using the Prometheus client library
- delete the metrics a finished job left behind with an API call
- keep the last pushed values of my batch jobs across restarts of the metrics cache

## Features

- HTTP API to push metrics in the Prometheus text format or protobuf
- metric groups identified by a grouping key that starts with the job label
- PUT replaces a group, POST replaces metrics of the same name, DELETE removes a group
- push_time_seconds and push_failure_time_seconds per group for alerting on stale jobs
- optional persistence to a file across restarts
- consistency check on push, which can be turned off for large, frequent pushes
- admin API to wipe all groups
- web UI to inspect pushed groups
- supported by the Prometheus client libraries' push functions

## Limitations

- Doesn't turn Prometheus into a push-based monitoring system: it's meant for service-level batch jobs that can't be scraped[^4][^5]
- Doesn't aggregate or count across pushes like StatsD: it caches the last metrics each group pushed[^4]
- Doesn't expire pushed metrics: series stay exposed until deleted through its API, as it has no timeout or TTL[^4][^5]
- Doesn't give per-instance up monitoring: jobs that push through it lose the up metric Prometheus makes on each scrape[^5]
- Doesn't keep pushed metrics across restarts by default: persistence needs the --persistence.file flag[^4]

## Capabilities

- Has an API: plan not known

## Trust

Overall: 0.42 out of 1.
Signals: backing 0.55, extensibility 0.20.

- backed by Cloud Native Computing Foundation
- funding: non-profit

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [Prometheus](https://talira.ai/catalog/prometheus-198e2rss.md)
- Works with [kube-prometheus-stack](https://talira.ai/catalog/kube-prometheus-stack-weeqng9w.md)

## Alternatives

- [Node exporter](https://talira.ai/catalog/node-exporter-ap8x6jmc.md): Prometheus exporter for hardware and OS metrics exposed by *NIX kernels
- [Prometheus](https://talira.ai/catalog/prometheus-198e2rss.md): The Prometheus monitoring system and time series database
- [Amazon Managed Service for Prometheus](https://talira.ai/catalog/amazon-managed-service-for-prometheus-6qk4t9k9.md): Serverless, Prometheus-compatible monitoring service for container metrics
- [Cortex](https://talira.ai/catalog/cortex-20vp05mm.md): Horizontally scalable, highly available, multi-tenant, long term storage solution for Prometheus and OpenTelemetry Metrics
- [Thanos](https://talira.ai/catalog/thanos-6p0s15z4.md): Open source, highly available Prometheus setup with long term storage capabilities

## Sources

[^1]: https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus-pushgateway/README.md (checked 20 Nov 2026)
[^2]: https://prometheus.io/governance/ (checked 20 Nov 2026)
[^3]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^4]: https://github.com/prometheus/pushgateway/blob/master/README.md (checked 20 Nov 2026)
[^5]: https://prometheus.io/docs/practices/pushing/ (checked 20 Nov 2026)
[^6]: https://github.com/prometheus/pushgateway/blob/master/LICENSE (checked 20 Nov 2026)
[^7]: https://github.com/prometheus/pushgateway/releases/latest (checked 20 Nov 2026)
[^8]: https://www.cncf.io/about/charter/ (checked 20 Nov 2026)
[^9]: https://www.cncf.io/ (checked 20 Nov 2026)
