Solutions
LE-MQTT TO InfluxDBv2
5 min
overview how to use the solution using docker here is an example to run le mqtt to influxdbv2 with docker docker run itd name le mqtt to influxdbv2 e influx host=http //influxdb oss 8086 e influx org=litmus e influx token=supersecuretoken e influx bucket=le mqtt to influxdbv2 e mqtt host=tcp\ //mqtt 1883 e mqtt topics=le mqtt to influxdbv2/ e mqtt qos=1 e mqtt persistent session=false e mqtt timeout=30s e mqtt client id=le mqtt to influxdbv2 oss test client e mqtt username=username e mqtt password=password e telegraf max undelivered messages=5000 e telegraf metric buffer limit=10000 e telegraf batch size=5000 e telegraf mqtt flush interval=5s e telegraf hc flush interval=3s e telegraf hc collect interval=3s e telegraf debug=true e le name=le 08 00 27 3b 0b 50 us docker pkg dev/litmus customer facing/litmus solutions dev/le mqtt to influxdbv2\ latest le mqtt to influxdbv2 docker image is available at https //us docker pkg dev/litmus customer facing/litmus solutions dev/le mqtt to influxdbv2\ latest requirements mqtt broker v3 1 1 influxdb v2 x if the subscribed data is not published by litmus edge instances, it must be a valid json string (or object) and have the same json schema used by litmus edge configuration options ⚠️ when using docker, the following environment variables must be set before running the container true 298 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type how to use monitor le mqtt to influxdbv2 performance (optional) le mqtt to influxdbv2 also sends metrics about itself to influxdb such as the number of metrics gathered, added, written and dropped as well as the time spent in collecting and writing the metrics the following influxdb template contains a dashboard to visualize these metrics for each instance of le mqtt to influxdbv2 https //gist github com/amine amaach/0035b2959d77943578dd424783122df0/raw/59fb6f4fc4f7eacba82d504cbf11d99d70a0d1aa/le ingestors monitoring yml to install the template, go to settings, choose templates and enter the above url, then click the lookup templalte button under dashboards select le ingestors | performance monitoring dashboard