Brian Candler wrote:
> You can send the query "foo[2d]" and then filter the results in the client, 
> to just those points where the value is N.

Indeed, in the Prometheus Web UI I can use ^F in the browser to look
for N. Thank you for the hint. The problem is not to overwhelm the
browser with data.

> This is a use case where it would be nice to be able to build a range 
> vector directly out of a simple instant vector expression, i.e. "(foo == 
> N)[2d]".  However that isn't allowed.
> 
> A subquery doesn't cut it here, because it resamples the data.  The 
> subquery "(foo == N)[2d:1s]" gives an approximation, but for a given point 
> you'll see multiple points at 1 second intervals (until the time where foo 
> != N)

Isn't "(foo == N)[2d:]" what I'm looking for? I don't quite grok
subqueries, but the resolution parameter seems to be optional. At
least "(foo == N)[2d:]" seems to show the timestamps I was looking
for.


-- 
Victor Sudakov VAS4-RIPE
http://vas.tomsk.ru/
2:5005/49@fidonet

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/YdJtXrJ9cFdR7uii%40admin.sibptus.ru.

Reply via email to