Skip to content

Telegraf external input plugin mqtt_consumer_db, to update topics on-the-fly through a database connection.

License

Notifications You must be signed in to change notification settings

BestSens/mqtt_consumer_db

Repository files navigation

Install Instructions

Build the binary

$ ./build.ps1

Create a plugin.conf for the external plugin configuration. See mqtt_consumer_db for its content.

Create a telegraf config file with the following content:

[[inputs.execd]]
  command = ["/etc/telegraf/extern_plugin/mqtt_consumer_db", "-config", "/etc/telegraf/extern_plugin/plugin.conf"]
  signal = "none"
  data_format = "influx"
  name_override = "dot"
  tags = {dot = "default_event_log"}
  
[[outputs.influxdb_v2]]
  urls = ["http://influxdb:8086"]
  token = "SOME-TOKEN"
  organization = "SOME-ORG"
  bucket = "SOME-BUCKET"
  tagexclude = ["dot", "bone"]
  
  data_format = "json"
  
  [outputs.influxdb_v2.tagpass]
    dot = ["default_event_log"]

About

Telegraf external input plugin mqtt_consumer_db, to update topics on-the-fly through a database connection.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published