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

[v10.0.x] Alerting: Add limit query parameter to Loki-based ASH api, drop default limit from 5000 to 1000, extend visible time range for new ASH UI #70857

Merged
merged 1 commit into from Jun 28, 2023

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport f94fb76 from #70769


What is this feature?

Allows clients to configure the record limit when querying loki. You can now supply a limit query parameter, with a value between 0 and 5000, to control the size of the returned page. Limits are hard-capped at 5000.

The default limit, when the query parameter is not present, has been dropped from 5000 to 1000.

Which issue(s) does this PR fix?:

n/a

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

…lt limit from 5000 to 1000, extend visible time range for new ASH UI (#70769)

* Add limit query parameter

* Drop copy paste comment

* Extend history query limit to 30 days and 250 entries

* Fix history log entries ordering

* Update no history message, add empty history test

---------

Co-authored-by: Konrad Lalik <konrad.lalik@grafana.com>
(cherry picked from commit f94fb76)
@grafana-delivery-bot grafana-delivery-bot bot requested review from a team as code owners June 28, 2023 18:33
@grafana-delivery-bot grafana-delivery-bot bot added this to the 10.0.x milestone Jun 28, 2023
@grafana-delivery-bot grafana-delivery-bot bot added add to changelog area/alerting Grafana Alerting area/backend area/frontend backport A backport PR kata:state-history product-approved Pull requests that are approved by product/managers and are allowed to be backported labels Jun 28, 2023
@grafanabot grafanabot added the pr/external This PR is from external contributor label Jun 28, 2023
@alexweav alexweav merged commit bf80197 into v10.0.x Jun 28, 2023
18 checks passed
@alexweav alexweav deleted the backport-70769-to-v10.0.x branch June 28, 2023 20:11
@zerok zerok modified the milestones: 10.0.x, 10.0.2 Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/alerting Grafana Alerting area/backend area/frontend backport A backport PR kata:state-history pr/external This PR is from external contributor product-approved Pull requests that are approved by product/managers and are allowed to be backported
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants