The Prometheus Monitoring extension allows HiveMQ to expose metrics to a Prometheus application.
hivemq-prometheus-extension-<version>-distribution.zipto the directory:
prometheusConfiguration.propertiescan be found in the
The extension can be configured with the
prometheusConfiguration.properties file, which is part of the
|port||9399||The port which the servlet will listen to.|
|host||0.0.0.0||The bind-address which the servlet will listen to.|
|metric_path||/metrics||The path for the service which gets called by Prometheus. It must start with a slash.|
You can test your configuration by navigating to
<ip>:<port><metric_path> (as configured in
prometheusConfiguration.properties) in your browser.
For example the address would be http://localhost:9399/metrics with default values.
You should see data provided by the extension:
For detailed information please visit: Prometheus Configuration
To enable Prometheus to gather metrics from HiveMQ, you need to add a scrape configuration to your Prometheus configuration. The following is a minimal example using the default values of the extension:
If you encounter any problems, we are happy to help. The best place to get in contact is our support.