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

avg()[5m] doesn't work #4406

Closed
koupeng opened this Issue Jul 23, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@koupeng
Copy link

koupeng commented Jul 23, 2018

  • Use Case *
    avg(errorlog{domain="1"})
  • What I want *
    avg(errorlog{domain="1"})[5m]
    I want the avg function allow aggregating a given instant vector and return an range vector with 5 minutes
@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Jul 23, 2018

Thanks for your report. It looks as if this is actually a question about usage and not development because avg() works only with range vectors. In other words, avg(errorlog{domain="1"}) doesn't make sense since you need at least 2 datapoints to compute the average.

To make your question, and all replies, easier to find, we suggest you move this over to our user mailing list, which you can also search. If you prefer more interactive help, join or our IRC channel, #prometheus on irc.freenode.net. Please be aware that our IRC channel has no logs, is not searchable, and that people might not answer quickly if they are busy or asleep. If in doubt, you should choose the mailing list.

Once your questions have been answered, please add a short line pointing to relevant replies in case anyone stumbles here via a search engine in the future.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 22, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 22, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.