Skip to content

Prometheus: Adjust step for queries #481

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

Merged
merged 1 commit into from
Jun 17, 2020
Merged

Conversation

shedimon
Copy link
Contributor

Previously, step in queries to Prometheus was static and this resulted in exceeded maximum resolution of 11,000 points per timeseries errors on a wider time ranges.

This PR adds adjusting step to respect the provided constraints. It also rounds the step to match the steps scale in use by Grafana. The constraint is defaulted to the Prometheus 11k and is configurable via max_points_per_query backendOptions option

Add new option to documentation
@Civil Civil self-requested a review June 17, 2020 19:31
@Civil Civil merged commit c40c33c into go-graphite:main Jun 17, 2020
@shedimon shedimon deleted the clever-step branch June 17, 2020 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants