The HiveMQ Graphite plugin allows to publish all Metrics of HiveMQ to your Graphite installation. This plugin collects internal HiveMQ statistics and also uses custom metrics hooked into HiveMQ with the MetricService of the plugin system.
This Graphite plugin also supports batching, so if you want to have metrics in second resolution in Graphite but don’t want to have the huge network overhead by sending it actually every few seconds, you can batch the send action of the metrics.
-
Copy the jar file to your [HIVEMQ_HOME]/plugins folder
-
Copy the graphite-plugin.properties file to your [HIVEMQ_HOME]/conf folder
-
Modify the graphite-plugin.properties file for your Graphite installation
-
Done
The configuration file graphite-plugin.properties can be changed at runtime. It supports the following configuration options:
Name | Default | Description |
---|---|---|
|
essential, no default value |
The hostname or IP address |
|
essential, no default value |
The Graphite Port |
|
false |
whether metrics should be batched |
|
3 |
The number of batches before sending the data |
|
60 |
The interval to send metrics |
|
none |
The prefix of all metrics |
Furthermore there is the option to use environment variables to configure the plugin. They correspond to the options set in the graphite-plugin.properties file. A configuration set in an environment variable will take precedence over a configuration set in the properties file.
Environment Variable | Description |
---|---|
|
The hostname or IP address |
|
The Graphite Port |
|
whether metrics should be batched |
|
The number of batches before sending the data |
|
The interval to send metrics |
|
The prefix of all metrics |
host = localhost port = 2003 batchMode = false batchSize = 3 reportingInterval = 60 prefix =
If you want to contribute to HiveMQ Graphite Plugin, see the contribution guidelines.
HiveMQ Graphite Plugin is licensed under the APACHE LICENSE, VERSION 2.0
. A copy of the license can be found here.