Ok now is working. Not before, I dont know why. But thanks for your help.
I have another question regarding the auto generated field (from Telegraf) “time”. (Example value by me: 1557518403000000000) Can i change the format? Maybe via Telegraf.conf?
Hi me again. The time issue is solved. Simply precision rfc3339. That it.
But the group by string field is not working.
Sql statement:
SELECT probe,lastvalue,lastvalue_raw FROM data_traffic WHERE time >= ‘2019-05-13T00:00:00Z’ AND time <= ‘2019-05-14T23:59:00Z’ GROUP BY probe ORDER BY time ASC
or simply
SELECT probe,lastvalue,lastvalue_raw FROM prtg_data_traffic GROUP BY probe ORDER BY time ASC
Database example data:
time probe lastvalue lastvalue_raw
2019-05-13T20:00:03Z Test 1 1.147 GB 1147.2643
2019-05-13T20:00:03Z Test 2 1.158 GB 1158.1432
2019-05-13T20:00:03Z Test 3 1.161 GB 1160.6873
2019-05-14T08:00:03Z Test 1 899 GB 899.2385
2019-05-14T08:00:03Z Test 2 899 GB 898.7219
2019-05-14T08:00:03Z Test 3 919 GB 919.0146
2019-05-14T08:00:03Z Test 4 931 GB 930.6706
2019-05-14T08:00:03Z Test 5 935 GB 934.9691
The output is not in blocks grouped by probe and then ordered by time. I cant use order by time, probe.