I was originally trying something similar using grafana with postgresql but I think using telegraf to bring data into influxdb is probably a better way to do it. I’ve mainly used telegraf for network monitoring though, to collect snmp and streaming telemetry from routers into influxdb.