I am a little struggling to understand how to deploy Grafana Live streaming introduced in v8. I would like to use a Raspberry Pi, that reads (via Python) some sensors over I2C and streams the data to Grafana. For the live update, I would like to acquire the sensor data every ~200-500 ms. Furthermore, I would like to also store long-term data in a InfluxDB e.g. the average value every 10s.
So far (without the live streaming), we typically ran the data acquisition within Python and used the influxdb client in Python to push the data to the server. We had setup a systemd timer to execute the Python script every 10 seconds.
What would now be the easiest way to setup live streaming? Maybe shift over to telegraf (then using the execd input plugin + modified Python scripts)? But how do I then get the long-term storage in InfluxDB? Do I stream only to Grafana and Grafana forwards to InfluxDB? How do we merge live data & Influx data in the panel of Grafana?
Thanks for your help!