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

Check for recording rules with ranges too short for a given scrape interval #81

Open
rgeyer opened this issue Jun 16, 2022 · 1 comment

Comments

@rgeyer
Copy link
Contributor

rgeyer commented Jun 16, 2022

The dashboard linter checks that rate/irate/increase queries use the Grafana $__rate_interval to ensure that the ranges are large enough to capture sufficient datapoints to calculate.

However, in recording rules, the ranges must be hardcoded, and can be too short for a given scrape interval.

The linting of recording rules should allow some way to specify a target scrape interval, and warn when the range is too small to produce a result.

@roidelapluie
Copy link

It also makes sense to know the evaluation interval to compare.

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

No branches or pull requests

2 participants