-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Time between events #1856
Comments
👍, I can see two scenarios where this is valuable:
|
As mentioned in my post to the mailing list we are experimenting with simplifying our open GitHub Issues. This feature request has been rolled into an aggregate issue for all function requests, so that we can close this issue until we are ready to work on it. You may continue to make comments here. Closing the issue does not mean we are rejecting this idea. |
I am starting work on this issue as it has some more immediate value for Kapacitor. I like the name
Return elapsed time between points with the value field, returned in units of 1 millisecond. |
Especially with counter or boolean values it would be a benefit to be able to query the time between events.
Normally one would do something like:
for example to see how dynamic certain events are. This will work well if a certain amount of events are recorded in the chosen time interval and if the events are relatively equally distributed over time.
In case only a small amount of events is given per time interval and even have nil in the chosen interval a calculation of the passed time between the intervals would be a lot more precise.
This would be especially useful in combination with the derivative function as it would allow to calculate the volatility of events like cache hits, attacks etc. In event everything that can be counted.
I would think about a query e.g.
to return a table of time in milliseconds that passed between each event that matches the WHERE clause.
The text was updated successfully, but these errors were encountered: