Hi All!!! I’m having issues with group by time function, when I add this function to the query no data is bring, example from influx:
SELECT * FROM “heartbeats” WHERE time >= now() - 30s
name: heartbeats
time app az dpcolor health host metric_db pod region release service up weight
2019-07-29T13:19:30Z edge $APIGEE_AZ green 1 xxx application central dc-1 180608_08 management-server 1 1
2019-07-29T13:19:30Z edge $APIGEE_AZ green 1 xxx application gateway dc-1 180608_08 router 1 1
2019-07-29T13:19:30Z edge $APIGEE_AZ green 1 xxx application gateway dc-1 180608_08 message-processor 1 1
2019-07-29T13:19:40Z edge $APIGEE_AZ green 1 xxx application gateway dc-1 180608_08 router 1 1
2019-07-29T13:19:40Z edge $APIGEE_AZ green 1 xxx application gateway dc-1 180608_08 message-processor 1 1
2019-07-29T13:19:40Z edge $APIGEE_AZ green 1 xxx application central dc-1 180608_08 management-server 1 1
2019-07-29T13:19:50Z edge $APIGEE_AZ green 1 xxx application gateway dc-1 180608_08 message-processor 1 1
2019-07-29T13:19:50Z edge $APIGEE_AZ green 1 xxx application central dc-1 180608_08 management-server 1 1
2019-07-29T13:19:50Z edge $APIGEE_AZ green 1 xxx application gateway dc-1 180608_08 router 1 1
2019-07-29T13:20:00Z edge $APIGEE_AZ green 1 xxx application central dc-1 180608_08 management-server 1 1
2019-07-29T13:20:00Z edge $APIGEE_AZ green 1 xxx application gateway dc-1 180608_08 router 1 1
2019-07-29T13:20:00Z edge $APIGEE_AZ green 1 xxx application gateway dc-1 180608_08 message-processor 1 1
2019-07-29T13:20:10Z edge $APIGEE_AZ green 1 xxx application gateway dc-1 180608_08 router 1 1
2019-07-29T13:20:10Z edge $APIGEE_AZ green 1 xxx application gateway dc-1 180608_08 message-processor 1 1
2019-07-29T13:20:10Z edge $APIGEE_AZ green 1 xxx application central dc-1 180608_08 management-server 1 1
2019-07-29T13:20:20Z edge $APIGEE_AZ green 1 xxx application gateway dc-1 180608_08 router 1 1
2019-07-29T13:20:20Z edge $APIGEE_AZ green 1 xxx application central dc-1 180608_08 management-server 1 1
2019-07-29T13:20:21Z edge $APIGEE_AZ green 1 xxx application gateway dc-1 180608_08 message-processor 1 1
2019-07-29T13:20:30Z edge $APIGEE_AZ green 1 xxx application central dc-1 180608_08 management-server 1 1
2019-07-29T13:20:30Z edge $APIGEE_AZ green 1 xxx application gateway dc-1 180608_08 message-processor 1 1
2019-07-29T13:20:30Z edge $APIGEE_AZ green 1 xxx application gateway dc-1 180608_08 router 1 1
query with group by time:
SELECT count(“up”) FROM “heartbeats” WHERE time >= now() - 30s group by time(10s)
no data returned, any help will be appreciate it.
regards,
Matías