Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hivemq/hivemq-influxdb-extension
HiveMQ extension for transferring monitoring data to the time series database InfluxDB
https://github.com/hivemq/hivemq-influxdb-extension
dev-ops extension hivemq hivemq-extension influxdb metrics metrics-gathering monitoring mqtt operations time-series-analysis
Last synced: about 2 months ago
JSON representation
HiveMQ extension for transferring monitoring data to the time series database InfluxDB
- Host: GitHub
- URL: https://github.com/hivemq/hivemq-influxdb-extension
- Owner: hivemq
- License: apache-2.0
- Created: 2018-10-12T08:01:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-14T04:18:50.000Z (4 months ago)
- Last Synced: 2024-09-14T16:43:54.013Z (4 months ago)
- Topics: dev-ops, extension, hivemq, hivemq-extension, influxdb, metrics, metrics-gathering, monitoring, mqtt, operations, time-series-analysis
- Language: Java
- Homepage: https://www.hivemq.com/extension/influxdb-extension/
- Size: 304 KB
- Stars: 12
- Watchers: 17
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.adoc
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
:hivemq-link: https://www.hivemq.com
:influxdb-link: https://www.influxdata.com/time-series-platform/influxdb/
:hivemq-support: {hivemq-link}/support/
:docker: https://www.docker.com/
:influxdb-docker: https://hub.docker.com/_/influxdb/
:download-influxdb-extension: https://www.hivemq.com/products/extensions/influxdb-extension/= HiveMQ InfluxDB Monitoring Extension
image:https://img.shields.io/badge/Extension_Type-Monitoring-orange?style=for-the-badge[Extension Type]
image:https://img.shields.io/github/v/release/hivemq/hivemq-influxdb-extension?style=for-the-badge[GitHub release (latest by date),link=https://github.com/hivemq/hivemq-influxdb-extension/releases/latest]
image:https://img.shields.io/github/license/hivemq/hivemq-influxdb-extension?style=for-the-badge&color=brightgreen[GitHub,link=LICENSE]
image:https://img.shields.io/github/actions/workflow/status/hivemq/hivemq-influxdb-extension/check.yml?branch=master&style=for-the-badge[GitHub Workflow Status,link=https://github.com/hivemq/hivemq-influxdb-extension/actions/workflows/check.yml?query=branch%3Amaster]== Purpose
The HiveMQ {influxdb-link}[InfluxDB^] Extension can be leveraged to gather metrics from {hivemq-link}[HiveMQ^] and persist them into a time series database.
This database can be used as the data source for a monitoring dashboard (like Grafana) that drills down into the inner workings of HiveMQ and provides valuable insights to your operations team.== Installation
Installing the extension for HiveMQ is very easy:
. Download the extension from the {download-influxdb-extension}[HiveMQ website] and unzip the downloaded zip file.
. In the folder `hivemq-influxdb-extension`, modify the `influxdb.properties` file to fit your needs.
Check that the mandatory properties (host, port) are set
. Copy the folder `hivemq-influxdb-extension` to your `/extensions` folder
. Done== Configuration
The InfluxDB Monitoring extension uses its own configuration file `influxdb.properties`.
The extension won't start if this file is missing or the required properties are not set.=== General Configuration
|===
| Config name | Required | Description | Default| mode | no | The mode configured for the InfluxDB sender.
Possibilities are: http, tcp, udp, cloud | http
| host | yes | The host name of the InfluxDB instance. | -
| port | yes | The port number the InfluxDB instance is listening. | 8086
| protocol | no | The protocol the InfluxDB sender uses in http mode. | http (or https for cloud mode)
| auth | no | The authorization string to be used to connect to InfluxDB, of format username:password.
If mode "cloud" is used, the token must be passed here| -
| prefix | no | The measurement prefix. | -
| database | no | The database name. | hivemq
| reportingInterval | no | The reporting interval in seconds. | 1
| connectTimeout | no | The connect and read timeout in seconds. | 5000
| tags | no | The tags for each metric.
Listed as a semicolon ( `;` ) separated list. | -
| organization | only for mode: "cloud" | The organization to push data to | -
| bucket | only for mode: "cloud" | The bucket to push data to | -
|===NOTE: When using InfluxDB 2 the *_Cloud_* mode should be configured.
.Example Configuration
[source]
----
mode:http
host:localhost
port:8086
protocol:http
auth:prefix:
database:hivemqreportingInterval:1
connectTimeout:5000tags:host=hivemq1
----== First Steps
=== Quick Start InfluxDB
If you don't already have an InfluxDB instance set up, here is an instruction how to start a not configured InfluxDB instance with Docker.
. Download and install {docker}[Docker^] for your platform
. Start an InfluxDB docker container with the command `docker run -p 8086:8086 -v $PWD:/var/lib/influxdb influxdb`.
For more information about using InfluxDB with Docker visit the {influxdb-docker}[official Docker repository^] for InfluxDB
. A local instance of InfluxDB should be running with the port for the database set to 8086
. Create a database that matches the name set in the property `database` in `influxdb.properties`.
For the default `database` value use the command `curl -G http://localhost:8086/query --data-urlencode "q=CREATE DATABASE hivemq"`
. Done=== Usage
After the extension is installed and an InfluxDB instance exists.
. Start HiveMQ
. Extension successfully started if configuration file exists and contains required properties== Need Help?
If you encounter any problems, we are happy to help.
The best place to get in contact is our {hivemq-support}[support^].== Contributing
If you want to contribute to HiveMQ InfluxDB Extension, see the link:CONTRIBUTING.md[contribution guidelines].
== License
HiveMQ InfluxDB Extension is licensed under the `APACHE LICENSE, VERSION 2.0`.
A copy of the license can be found link:LICENSE[here].