Getting sensors with zigbee integrated with my linux raspberry pi, i did some monitoring tasks on my raspberry pi.
- Monitoring my raspberry pi:
There is a very nice tutorial:
https://medium.com/@andreea.sonda31/monitor-raspberry-pi-resources-and-parameters-with-grafana-board-part-1-ab0567303e8
Or even better: Just use this from grafana:
https://grafana.com/grafana/dashboards/10578 - add deb https://packages.grafana.com/oss/deb stable main to a file in /etc/apt/sources.list.d/
- apt install grafana telegraf influxdb
- configure telegraf for your influxdb
- import the json from the grafana.com-link above
- Monitoring my Fritz.Box with Grafana:
https://grafana.com/grafana/dashboards/713
and follow the given tutorial https://fetzerch.github.io/2014/08/23/fritzcollectd/
- zigbee2mqtt --> MQTT -->FHEM
- Fritz.box --> collectd --> InfluxDB --> Grafana
- raspberry --> telegraf --> InfluxDB --> Grafana
For 2 and 3 it is very easy to create graphics and the presentation looks little bit prettier than 1 (imho).
AND there is only one frontend to configure. So what about the following chain for my zigbee sensors:
- zigbee2mqtt --> MQTT -->telegraf --> InfluxDB --> Grafana
Looks like some more steps, but the telegraf --> InfluxDB --> Grafana chain is already there for monitoring my raspberry pi.
So i only had to add the following on /etc/telegraf/telegraf.conf:
[[inputs.mqtt_consumer]]
servers = ["tcp://127.0.0.1:1883"]
topics = [
"zigbee2mqtt/0x00158d000542239e",
"zigbee2mqtt/0x00158d00044a6378",
"zigbee2mqtt/0x00158d0003f0faad",
"zigbee2mqtt/0x00158d00044a72a2",
data_format = "json"
And after that i was able to use the data in Grafana:
No comments:
Post a Comment