Prometheus
Description and Configuration of the Prometheus exporter
The Prometheus exporter is enabled by default and installs an HTTP handler on http://localhost:8888/metrics. To read more about configuring the HTTP listener, see HTTP Listener Configuration.

Example Scrape Config

Add the following configuration to the scrape_configs section inside prometheus.yml of your Prometheus server.
1
# A scrape configuration containing exactly one endpoint to scrape:
2
# Here it's Prometheus itself.
3
scrape_configs:
4
- job_name: 'vernemq'
5
scrape_interval: 5s
6
scrape_timeout: 5s
7
static_configs:
8
- targets: ['localhost:8888']
Copied!
This tells Prometheus to scrape the VerneMQ metrics endpoint every 5 seconds.
Please follow the documentation on the Prometheus website to properly configure the metrics scraping as well as how to access those metrics and configure alarms and graphs.
Last modified 22d ago
Export as PDF
Copy link
Edit on GitHub