MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol designed as an extremely lightweight publish/subscribe messaging transport. MQTT is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium. MQTT was invented by Dr. Andy Stanford-Clark of IBM, and Arlen Nipper of Arcom (now Eurotech), in 1999.
MQTT was designed for low-bandwidth, high-latency networks in the late 1990s/early 2000s. As a result, the designers made a number of key choices which have come to characterize it:
- Simple to implement
- Publish/subscribe messaging
- Zero administration (or near-zero administration)
- Minimal on-the-wire footprint
- Expect and cater for frequent network disruption
- Continuous session awareness
- Expect that client applications may have very limited processing resources available
- Provide traditional messaging qualities of service where the environment allows
- Flexible and data agnostic
Why use a Telegraf plugin for MQTT Consumer?
MQTT pulls in all your time series data (metrics and events) from your applications, infrastructure, and even sensors, making it easy for your developers to use. This data can be used for monitoring your applications and infrastructure as well as enhancing your applications by being queried in a real-time visualization in your application — a single source of truth for all your time series data.
How to monitor MQTT Consumer using the Telegraf plugin
The MQTT Consumer Telegraf Input Plugin reads from specified MQTT topics and adds messages to InfluxDB. Messages are in the Telegraf input data formats. You can gather and graph metrics from your IoT devices with the Message Queue Telemetry Transport (MQTT) protocol — a simple and lightweight messaging protocol ideal for IoT devices. This plugin reads from specified MQTT topics and adds messages to InfluxDB. The plugin expects messages in the Telegraf Input Data Formats.
Key MQTT Consumer metrics to use for monitoring
With MQTT, you can stream data between different applications, application monitoring, fraud detection and live leader-boards. All measurements are tagged with the incoming topic, i.e.