

When Prometheus and the HiveMQ Prometheus extension are configured correctly, you can access your HiveMQ metrics in the Expression field.ĭisplaying HiveMQ metrics in Prometheus Installing Grafana This ability is particularly helpful when you want an in-depth look into specific metrics that you don’t monitor constantly. Additionally, Prometheus comes with built-in functionality to display metrics on-the-fly. Prometheus is more than just a data source for monitoring dashboards like Grafana. If you want more nodes, you need to add the additional nodes to the targets. Note: This example is tailored for a 2 node cluster. Global: scrape_interval : 15 s scrape_configs: - job_name : ' hivemq ' scrape_interval : 5 s metrics_path : ' / metrics ' static_configs : # using port 9399 because we configured it the HiveMQ Prometheus Extension - targets : Note: Always adjust the prometheusConfiguration.properties file inside the hivemq-prometheus-extension folder to suit your individual needs and make sure that the IP address of the network interface can be reached by your Prometheus server. Move the hivemq-prometheus-extension folder to the extensions folder.The installation of this extension, like all HiveMQ extensions, is very simple: One of these extensions is the HiveMQ Prometheus Monitoring Extension. HiveMQ offers a wide range of pre-built and ready-to-use extensions. Installing the Prometheus HiveMQ Extension The HiveMQ Prometheus Monitoring Extension.
#PROMETHEUS JMX EXPORTER ELASTICSEARCH SOFTWARE#
To fulfill our plan, we’ll need three pieces of software in addition to our HiveMQ cluster: Then, we can set up a Grafana dashboard for real-time monitoring of our HiveMq metrics. In this installation, we want our HiveMQ clusters to report their metrics to Prometheus.
#PROMETHEUS JMX EXPORTER ELASTICSEARCH HOW TO#
We will also show you how to create a monitoring dashboard using Prometheus as a data source in Grafana.Įxample Dashboard Installation and configuration This blog posts shows you how to use Prometheus to gather and visualize your HiveMQ metrics. Or, you can use Prometheus as an all-in-one solution for both gathering metrics and generating your metric visualizations. You can use Prometheus as a time-series database to gather and store metrics for your existing or preferred metric-visualization program can use as a data source. However, the tool that you choose to use is ultimately your decision and needs to reflect your personal preferences. So far, we have had good experiences with Prometheus. We are often asked to recommend monitoring tools.

The InfluxDB Extension and Prometheus Extension are free-of-charge and pre-built extensions that HiveMQ provides to enable time-series monitoring. Despite limitations, time-series monitoring solutions like Prometheus also function as great debugging tools, when you need to find the root cause of problems in your production environments. HiveMQ is often deployed with Docker and therefore direct access to the HiveMQ process might not be possible. Real-time monitoring with tools like JConsole is certainly better than nothing, but some disadvantages exist. To support the integration of cohesive monitoring tools, HiveMQ exposes a large number of metrics via JMX enabling JMX monitoring with tools like JConsole. In our opinion, it is the perfect companion for HiveMQ when it comes to monitoring. Prometheus is one of the most popular solutions for monitoring distributed systems on the market today.
The goal: allow you to efficiently monitor massive amounts of your available HiveMQ metrics with Prometheus. In this blog post, we’ll walk you through a detailed, step-by-step guide to set up the Prometheus application with HiveMQ.

It’s important not to fall victim to the false sense of security these factors create. Classic challenges to effective monitoring include a lack of cohesive tools and the presence of a wrong mindset. Monitoring your MQTT brokers is crucial, especially in clustered environments. System monitoring is an essential part of any production-software deployment.
