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 is perfect for use with the Internet of Things especially since many types of IoT devices that power smart homes — from appliances to bulbs to sensors, hubs and more — need an effective way to communicate with one another over a network without taking away too much bandwidth from other important applications. Thanks to MQTT, users have an excellent way to send high volumes of sensor messages (as is common in such applications) to cloud solutions, analytical platforms and everything in between.

MQTT basics

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. topic=telegraf/host01/cpu

For more information, please check out the documentation.

Project URL   Documentation

VIDEO

Monitor Your MQTT Devices in InfluxDB Cloud with Telegraf

This demonstration walks you through how to monitor The Things Network with InfluxDB Cloud via MQTT. Learn how to configure your MQTT Telegraf input plugin to read data from The Things Network and to send it to InfluxDB Cloud.

Related Resources

AMQP Consumer Telegraf plugin

Learn how the AMQP Consumer Telegraf Input Plugin receives streaming data from an AMQP message producer.

RabbitMQ Telegraf plugin

This plugin gathers statistics from your RabbitMQ monitoring cluster. It reads metrics from RabbitMQ servers via the RabbitMQ Management Plugin.

Kafka Telegraf plugin

Learn how the Kafka Consumer Plugin polls a specified Kafka topic and adds messages to InfluxDB.

Scroll to Top