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

The variable $__interval is templated to an incorrect value during annotation query #217

Closed
Haleygo opened this issue Oct 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Haleygo
Copy link

Haleygo commented Oct 28, 2024

To reproduce:
Adding an annotation with following query:
sum(changes(vm_app_start_timestamp{job=~"$job", instance=~"$instance"}[$__interval])) by(job)
and execute this query over a big time range like 24h, see this example on playground.
VM-datasource sets the $__interval to 60s, but the actual step for the returned results is 15m(probably limited by returned data points), resulting in missed restart events.
image

Expected result:
$__interval should be templated as the actual step arg in the query request to datasource as prometheus datasource, see this example.
image

@dmitryk-dk
Copy link
Contributor

HI @Haleygo ! The issue was fixed in the new v0.10.3 release. Close as solved. Fill free to reopen if you find any problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants