Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question