MQTT Datasource for Grafana allows streaming data from any MQTT broker running either locally or remotely.
APACHE-2.0 License
The MQTT data source plugin allows you to visualize streaming MQTT data from within Grafana.
The MQTT data source has the following requirements:
Add a data source by filling in the following fields:
Field | Description |
---|---|
Name | A name for this particular MQTT data source |
URI | The scheme, host, and port of the MQTT Broker. Supported schemes: TCP (tcp://), TLS (tls://), and WebSocket (ws://) |
Field | Description |
---|---|
Username | (Optional) The username to use when connecting to the MQTT broker |
Password | (Optional) The password to use when connecting to the MQTT broker |
The query editor allows you to specify which MQTT topics the panel will subscribe to. Refer to the MQTT v3.1.1 specification for more information about valid topic names and filters.
Extract Fields
transformation.Convert field type
transformation.Refer to: Building a Streaming Datasource Backend Plugin
This plugin currently supports MQTT v3.1.x.
Note: Since this plugin uses the Grafana Live Streaming API, make sure to use Grafana v8.0+
yarn install
and then yarn build
.NOTE: The yarn build
command above might fail on a non-unix-like system, like Windows, where you can try replacing the rm -rf
command with rimraf
in the ./package.json
file to make it work.
mage reloadPlugin
or restart Grafana for the plugin to load.MQTT
in the search field, and hover over the MQTT search result.