My sensors provide an epoch timestamp with millisecond granularity, which I pass by MQTT to a remote server running Telegraf, Influxdb & Grafana.
Influx config has precision set for milliseconds;
# InfluxDB precision for timestamps on received points ("" or "n", "u", "ms", "s", "m", "h")
precision = "ms"
and appears to be working OK;
> SELECT last("grid") FROM "iot" WHERE ("device" = 'diverter')
name: iot
time last
---- ----
1574373726366 163
>
I’m having difficulties displaying data in Grafana, could it be related to the timestamp precision that I’m using, and if so, is there a setting somewhere to enable ms precision??