Skip to content
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

Average count per second? #209

Open
pingiun opened this issue Aug 16, 2024 · 1 comment
Open

Average count per second? #209

pingiun opened this issue Aug 16, 2024 · 1 comment

Comments

@pingiun
Copy link

pingiun commented Aug 16, 2024

Is there a way to keep a counter for some metric, and check how much it increases per second on average?

@rcoh
Copy link
Owner

rcoh commented Aug 19, 2024

if you have timestamps in your data, you can timeslice(parseDate(field)) 1s | avg(my_other_field) by _timeslice.

If you don't have timeslices, you can do timeslice(now()) 1s instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants