Triggering Prometheus scrape manually

Viewed 25

Is it possible to trigger Prometheus scrape ? i.e. either from the Prometheus web UI or using some other command line utility ?

2 Answers

Prometheus doesn't provide the ability for manually triggered scrape. But such an ability is provided by vmagent - lightweight Prometheus-compatible scraper I work on. It provides the response link per each scrape target at http://vmagent:8429/targets page. Click on the response link in order to trigger the scrape on vmagent behalf to the given target. The link returns plain response from the given scrape target. Note that vmagent doesn't store metrics obtained via manual scrape.

Related