Good morning, I’m trying to make a table with timeseries data that is stored in influxdb. I’m using the grafana table panel. When my two returned values has the same timestamp my table is showed properly but when the two returned values has a diferent timestamp they are showed in diferent rows (they are in the same second but not in the same milisecond). I want to know how can I change my query to has values in the same row although they are not in the same timestamp (precision of seconds not miliseconds). I think that the solution is to change the epoch param or the precision param but I dont know how to do it. Can anyone help me?
Just to double check - do you mean that everything got grouped to one row or do you mean that you got no data returned? If no data was returned then it sounds like you did not write a valid query with an aggregation function.
Sorry - don’t know if there is a way to do that and I couldn’t find anything in the docs for InfluxDB.
It looks like you can set the precision for queries and writes for the database with a flag when you start the InfluxDB service:
Maybe someone on the InfluxData forum knows how to specify it in a query.
It looks like this:
"SELECT “value” AS “IdUv” FROM “mqtt_consumer” WHERE (“topic” = ‘Instalacion/0/UVComs/UV/1/IdUv’ OR “topic” = ‘Instalacion/0/UVComs/UV/2/IdUv’) AND time >= now() - 6h GROUP BY time(1s) ORDER BY time DESC LIMIT 2;