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

Feature request: Filter queries on metric value in a time interval #4934

Closed
wjwinner opened this Issue Nov 30, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@wjwinner
Copy link

wjwinner commented Nov 30, 2018

Starting using Prometheus I'm looking for a way to filter some of my queries on the metric value in a time interval.

for example:

http_duration==200[5m]

Error executing query: parse error at char 24: range specification must be preceded by a metric selector, but follows a *promql.NumberLiteral instead

@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Nov 30, 2018

I presume that you want to filter http_duration series for . The expression should be something like http_duration{code="200"}. See https://prometheus.io/docs/prometheus/latest/querying/basics/

I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search.

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