telegraf/plugins/inputs/mqtt_consumer
Cameron Sparr d80f47d7f2 MQTT Consumer ServiceInput plugin 2016-02-04 16:51:15 -07:00
..
README.md MQTT Consumer ServiceInput plugin 2016-02-04 16:51:15 -07:00
mqtt_consumer.go MQTT Consumer ServiceInput plugin 2016-02-04 16:51:15 -07:00
mqtt_consumer_test.go MQTT Consumer ServiceInput plugin 2016-02-04 16:51:15 -07:00

README.md

mqtt_consumer Input Plugin

The example plugin gathers metrics about example things

Configuration:

# Description
[[inputs.example]]
  # SampleConfig

Measurements & Fields:

  • measurement1
    • field1 (type, unit)
    • field2 (float, percent)
  • measurement2
    • field3 (integer, bytes)

Tags:

  • All measurements have the following tags:
    • tag1 (optional description)
    • tag2
  • measurement2 has the following tags:
    • tag3

Example Output:

Give an example -test output here

$ ./telegraf -config telegraf.conf -input-filter example -test
measurement1,tag1=foo,tag2=bar field1=1i,field2=2.1 1453831884664956455
measurement2,tag1=foo,tag2=bar,tag3=baz field3=1i 1453831884664956455