Skip to content

Prometheus Pushgateway

Prometheus can use a pushgateway to gather metrics from short-lived jobs, like Kubernetes CronJobs. The pushgateway stays up to allow Promethus to gather the metrics. The short-lived job can push metrics to the gateway and terminate.

In particular, Genestack can use the pushgateway to collect metrics from the OVN backup CronJob.

Install the Prometheus Pushgateway Helm Chart

kubectl kustomize --enable-helm /opt/genestack/base-kustomize/prometheus-pushgateway | kubectl apply -f -

Success

If the installation is successful, you should see the prometheus-pushgateway pod running in the prometheus namespace.