tree: 91aedd2d38bb55a4fef594a6db4cc9da5155e4c4 [path history] [tgz]
  1. BUILD.bazel
  2. pushgateway.go
  3. pushgateway_test.go
  4. README.md
promk/go/pushgateway/README.md

Prometheus Pushgateway

Sometimes we need to monitor components which cannot be scraped. Examples: CLI processes and task drivers.

Prometheus recommends using the Prometheus Pushgateway for pushing time series from short-lived service-level batch jobs.

The Prometheus Pushgateway exists to allow ephemeral and batch jobs to expose their metrics to Prometheus. Since these kinds of jobs may not exist long enough to be scraped, they can instead push their metrics to a Pushgateway. The Pushgateway then exposes these metrics to Prometheus.

k8s service

Skia runs a pushgateway service in k8s. The service runs with an auth-proxy container to provide authentication to the pushgateway container ports. The pushgateway container also specifies a persistence.file to persist metrics across container restarts.

The service is hosted at pushgateway.skia.org

pushgateway.go

Contains convenience methods for interacting with Skia's pushgateway service.