Query specific time for last n days

9 views
Skip to first unread message

reklamo...@gmail.com

unread,
Jan 24, 2022, 6:39:54 AMJan 24
to Prometheus Users
Hi,
I have a gauge and I want to find out the values of it at 13:00 for last number of days.
I've found @ modifier ' http_requests_total @ 1643029200' and it would seem to provide the desired result but it only works for specific time of a single day. I am looking for something more dynamic. Is there some other way to do this?

Thanks

Brian Candler

unread,
Jan 24, 2022, 6:46:50 AMJan 24
to Prometheus Users
You can use a subquery to make a range vector:

http_requests_total[7d:24h] @ 1643029200

Or using the HTTP API, you can make a range query with your chosen start and end times and step.
Reply all
Reply to author
Forward
0 new messages