Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAPI: Start/end time range ignored in aggregation queries #3250
Comments
This comment has been minimized.
This comment has been minimized.
|
Nevermind--ended up being some weird caching issue on my end unrelated to prometheus. |
alkalinecoffee
closed this
Oct 5, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 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
bot
locked and limited conversation to collaborators
Mar 23, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
alkalinecoffee commentedOct 5, 2017
•
edited
What did you do?
I created a singlestat panel in Grafana that shows the total number of 200-status responses (sample query:
sum(http_request_duration_seconds_count{status=200})). The time period of the query result should reflect that specified by the time range for the entire dashboard.What did you expect to see?
When a user selects a range of "last 1 hour", etc, they should see the total number of requests over their selected time period.
What did you see instead? Under which circumstances?
The results of my queries are always the total number of requests for all-time. While the
start/endvalues in the query originating from Grafana appear correct (sample query below), it seems that thestart/endvalues are simply ignored on the prometheus end.Environment
Amazon Linux in AWS
Linux 4.9.51-10.52.amzn1.x86_64 x86_64Note: Also tried on 1.7.1, same issue