Ask Your Question
3

What is the method for calculating the number of events occurring every minute in influxdb?

asked 2023-01-21 11:00:00 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-09-25 00:00:00 +0000

plato gravatar image

The method for calculating the number of events occurring every minute in InfluxDB is to use the "GROUP BY time()" clause in the InfluxQL query statement. This statement groups the data based on a time interval, such as every minute, and calculates the count of events within that interval. The resulting output will show the number of events occurring every minute in the specified time frame. The query syntax is as follows:

SELECT COUNT("fieldname") FROM "measurementname" WHERE time >= 'starttime' AND time <= 'endtime' GROUP BY time(1m)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-01-21 11:00:00 +0000

Seen: 8 times

Last updated: Sep 25 '22