The variable $__interval
is templated to an incorrect value during annotation query
#217
Labels
bug
Something isn't working
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.Expected result:
$__interval
should be templated as the actualstep
arg in the query request to datasource as prometheus datasource, see this example.The text was updated successfully, but these errors were encountered: