Questions tagged [prometheus-pushgateway]

Pushgateway is part of the official prometheus ecosystem. You don't need to include the tag prometheus unless the question relates to metrics collection. Please, check the official documentation of PushGateway before asking a question.

New to Prometheus ecosystem?

Pushgateway is part of the official ecosystem. It is a metric cache written in Go. Metrics are pushed, updated and deleted through an API. It is not a replacement for push based monitoring like statd. But rather, as explained on GitHub, a proxy to make batch job appear as if they were still running, giving time to Prometheus, which is pull based monitoring, to come and collect the resulting metrics.

Tag usage

When posting questions about Prometheus PushGateway, remember there are three main aspects:

  • the API side to metrics lifetime management
  • the Prometheus collection an exploitation
  • the PushGateway exploitation and design decision

If it is about metrics collection and exploitation, include the tag as well.

For the API side, specif the system you are using for accessing the API and give curl equivalent of the operations you question relates to.

For the exploitation and design decision, please first check the documentation which details the use cases and intent of PushGateway.

70 questions
1
vote
2 answers

text format parsing error in line 1: invalid metric name when testing prometheus metrics using rest assured

I'm trying to mimic metrics in Prometheus using Push Gateway. When I'm passing these values in PostMan, I'm able to see the entry of metrics in Push Gateway. But, when I'm trying the same with Rest Assured, it is not working. I'm getting error as…
1
vote
2 answers

How to display zero instead of last value in prometheus + grafana

I'm using prometheus + grafana for collecting and displaying metrics. If one of my devices stops reporting grafana will continue to graph the last value. For example, if one of my devices reported its temperature 2 days ago and the temperature…
ap.dev
  • 320
  • 3
  • 11
1
vote
1 answer

why pushgateway does not prompt for username and password?

Hi I have pulled the docker image of pushgateway from dockerhub, and ran it with docker run -p 9091:9091 prom/pushgateway its all good running fine, but when I make http://localhost:9091/metrics it does not ask username and password. How to set…
Shankar S
  • 387
  • 5
  • 13
1
vote
1 answer

Prometheus count and sum metric over restart of pushgateway

I want to count how often a user opens a dialog in a frontend and send the results to the prometheus pushgateway. The problem is that once the gateway restarts the metrics are gone and I can not sum the values properly. The rate function seems not…
Tim Schwalbe
  • 1,588
  • 4
  • 19
  • 37
1
vote
1 answer

How to ensure that the data pulled by Prometheus is up-to-date and does not include old data before the pull interval

The Prometheus interval pulls data from the pushgateway. The pushgateway uses the “-persistence.file string” data persistence parameter configuration. The client sends data to the pushgateway in real time. If Prometheus pulls data within the time…
Mr.sun
  • 35
  • 5
0
votes
1 answer

Gauge values in Chronosphere Pushgateway only last for a couple of minutes

I have a hourly batch jobs in which I defined a gauge metrics where I'd set_to_current_time at certain time in the program. However when I see it in chronosphere, it will show with gaps in the graph instead of a continuous curve. The intent is to…
Bei Zhang
  • 1
  • 1
0
votes
0 answers

In Prometheus Pushgateway getting metrics of stopped MIG instance also along with running instance

as MIG instances in GCP keep getting scaled up and scaled down and instance gets new name every-time it scaled up and also MIG don’t have static IP. So I am trying Prometheus Pushgateway to get metrics. But after setting up everything I am getting…
0
votes
0 answers

Is there a way to avoid some default values being pushed into metric through Pushgateway

I'm exploring data scrapping options through Pushgateway in Prometheus. As per pushgateway mechanism goes it always overwrite the record unless there is one unique label is present. At times I see different instance (ip address), pod (k8 pod name)…
Ashwin
  • 439
  • 1
  • 7
  • 23
0
votes
0 answers

How can I see the multiple rows in one gauge that is pushed by the batch jobs?

I have pushed a gauge metric from my application. I am able to see the value but I have 3 objects and I want to see the values of all three in that one gauge. How can I , please help? Like in the image attached . I just see one row, but have a list…
0
votes
0 answers

How to push different grouping keys each to pushgateway in spring batch?

I am running a Job on multiple nodes using Spring batch. implementation 'org.springframework.boot:spring-boot-starter-batch' implementation 'org.springframework.boot:spring-boot-starter-actuator' implementation…
0
votes
0 answers

Micrometer with Prometheus Pushgateway - metrics appearing in Pushgateway intermittently

I have a Spring boot application with Prometheus Pushgateway using Micrometer, mainly based on this tutorial: https://luramarchanjo.tech/2020/01/05/spring-boot-2.2-and-prometheus-pushgateway-with-micrometer.html pom.xml has following related…
0
votes
0 answers

What happens to the metrics on pushgateway after they are scraped by prometheus?

I have set up a pushgateway instance in my kubernetes cluster to record metrics from short lived cronjobs that run every ~1 minute. Each cronjob pushes metrics at the end of the job with a unique job name. This is causing metrics to pile on the…
0
votes
1 answer

Prometheus push gateway only returns the last value instead of all

I use the push gateway from prometheus (https://prometheus.io/docs/practices/pushing/). And I push some metrics from a React UI very often like this: # HELP prom_react_app_availability_total Application availability counter # TYPE…
Rocco Hundertmark
  • 545
  • 2
  • 7
  • 20
0
votes
1 answer

Micrometer with Prometheus Pushgateway - Add TLS Support

I have a Spring boot application with Prometheus Pushgateway using Micrometer, mainly based on this tutorial: https://luramarchanjo.tech/2020/01/05/spring-boot-2.2-and-prometheus-pushgateway-with-micrometer.html pom.xml has following related…
0
votes
1 answer

Micrometer with Prometheus Pushgateway - Add Basic Auth credentials

I have a Spring boot application with Prometheus Pushgateway using Micrometer, mainly based on this tutorial: https://luramarchanjo.tech/2020/01/05/spring-boot-2.2-and-prometheus-pushgateway-with-micrometer.html pom.xml has following related…