Skip to content

fix: replace $__interval with $__rate_interval#47

Open
kinolaev wants to merge 1 commit into
cloudnative-pg:mainfrom
kinolaev:patch-1
Open

fix: replace $__interval with $__rate_interval#47
kinolaev wants to merge 1 commit into
cloudnative-pg:mainfrom
kinolaev:patch-1

Conversation

@kinolaev

Copy link
Copy Markdown

Grafana recommends using $__rate_interval with the rate and increase functions instead of $__interval or a fixed interval value. Since $__rate_interval is always at least four times the scrape interval, it helps avoid issues specific to Prometheus, such as gaps or inaccuracies in query results.

https://grafana.com/docs/grafana/v12.3/datasources/prometheus/template-variables/#use-__rate_interval

Signed-off-by: Sergei Nikolaev <kinolaev@gmail.com>
@kinolaev

Copy link
Copy Markdown
Author

@itay-grudev , @jsilvela , the PR shouldn't take more than a few minutes of your time) Please have a look

@kinolaev

Copy link
Copy Markdown
Author

@itay-grudev , @jsilvela , I still hope to get a minute of your attention to this tiny PR)

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.

1 participant