N
N
Nikolay Baranenko2017-12-19 11:24:26
Monitoring
Nikolay Baranenko, 2017-12-19 11:24:26

How to make a post request to add new metrics in Prometheus?

Hello.
there was a desire to send metrics and their values ​​to prometheus using API requests.
Please share an example if someone has already managed to do this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2018-06-11
@2ord

Prometheus works in pull mode, not push mode. He himself refers to the host and takes the metrics.
The push mode is needed only if there are short-term tasks. Then the metrics need to be sent to Pushgateway.
I advise you to read https://prometheus.io/docs/practices/pushing/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question