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
0
votes
1 answer

Dynamic metric counter in spring boot - prometheus pushgateway

I have an incoming event (to a spring boot application)in json format that contains a field called "component". I need to create a metrics counter and push to prometheus pushgateway per-component. There should be individual counters for every type…
Rahul Kumar
  • 87
  • 1
  • 12
0
votes
0 answers

Spring Boot Acutator: PrometheusPushGatewayManager.push gives up easily even for temporary outage of pushgateway endpoint

I have got a kubernetes cluster; in the cluster, I have installed prometheus and have a spring boot service that is scaled up and down to zero; I have configured the spring boot service to use pushgateway; Pushgateway happend to be out of reach for…
Venkatesh Laguduva
  • 13,448
  • 6
  • 33
  • 45
0
votes
2 answers

How to reset counter in prometheus push gateway

I Want to reset the counter to 0 in prometheus push gateway because prometheus push gateway will keep on sending last counter value to prometheus. i don't that to be happen in my condition.
0
votes
1 answer

How to push untyped metrics with multiple labels(key-value) using JAVA Prometheus Pushgateway client?

I want to push metrics using java PushGateway client. Sample PushGateway URL pushgateway.com:9091/metrics/job/job_name Sample Metrics metrics_name{instance="i1", label1="l1", label2="l2", label3="l3", label4="l4"} value Can any one please provide me…
0
votes
1 answer

Prometheus Pushgateway from Browser JS/AJAX

I am searching for an example on how to push metric to the pushgateway via ajax. echo 'some_metric 42' | curl --user user:pass --data-binary @- https://example.com/metrics/job/author_monitoring/jobname/count_open with curl it works perfect! I don't…
Tim Schwalbe
  • 1,588
  • 4
  • 19
  • 37
0
votes
1 answer

Flink Prometheus Push Gateway Reporter - Delete Metrics on Job Shutdown

I have set up the PrometheusPushGatewayReporter as explained in the documentation metrics section. I can see the metrics from the flink jobmanager and the taskmanagers exposed in the push gateway's UI, as well as that they are properly scraped by…
0
votes
1 answer

Why Flink uses the Pushgateway instead of Prometheus's usual pull model for general metrics collection?

We can see Flink uses the Pushgateway instead of Prometheus's usual pull model for general metrics collection when exposing Flink Metrics to an external system such as Prometheus. @Override public void report() { try { …
YuFeng Shen
  • 1,475
  • 1
  • 17
  • 41
0
votes
2 answers

Prometheus PushGateway inactive instance data clearance

What can be a reliable way of clearing stale data from PushGateway for an app that has retired (e.g. instance is shut down on unusual circumstances) w/o using manual involvement?
Divs
  • 1,578
  • 2
  • 24
  • 51
-1
votes
1 answer

flink standalone get no metrics to pushgateway for grafana

I am new to flink and have install yarn and flink on my macbook with M1 pro chip. To monitor the running of flink 1.13, I installed grafana,prometheus, pushgateway the same way I found on the internet posts, and all the web ui looks fine. Then I…
-1
votes
3 answers

How to write a Bash Script for Pushgateway and prometheus

I am trying to use a bash script for Pushgateway and Prometheus, but can't get it working. I have Pushgateway on my raspberry and Prometheus on another raspberry. All work correctly and I test a simple bash script, this script works correctly. My…
wanwan
  • 55
  • 1
  • 7
1 2 3 4
5