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

Subtracting histogram buckets returns "No datapoints found." #5118

Closed
elerer opened this Issue Jan 20, 2019 · 3 comments

Comments

Projects
None yet
3 participants
@elerer
Copy link

elerer commented Jan 20, 2019

What did you do?

dns_latency_bucket{le="30.0"} - dns_latency_bucket{le="10.0"}

What did you expect to see?

The per bucket count i.e. query above, is the count of distinct value that fit the bucket (10-30]

What did you see instead? Under which circumstances?

"No datapoints found."

Each query (i.e. dns_latency_bucket{le="30.0"} , dns_latency_bucket{le="10.0"}) gives me a time series values

@hoffie

This comment has been minimized.

Copy link

hoffie commented Jan 20, 2019

You probably need to ignore the le label. Otherwise, Prometheus tries to match it:
https://prometheus.io/docs/prometheus/latest/querying/operators/#one-to-one-vector-matches

dns_latency_bucket{le="30.0"} - ignoring(le) dns_latency_bucket{le="10.0"}

This currently sounds like a usage question. It is suggested, to ask these on the mailing list or on IRC: https://prometheus.io/community/

@elerer

This comment has been minimized.

Copy link
Author

elerer commented Jan 20, 2019

works, Thanks!

@codesome

This comment has been minimized.

Copy link
Member

codesome commented Jan 20, 2019

As @hoffie said, this is a usage question. Please use user mailing list or IRC channel mentioned here https://prometheus.io/community/ for further queries.

@codesome codesome closed this Jan 20, 2019

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.