mirror of https://github.com/grafana/grafana
Prometheus: make $__range more precise (#21722)
* Make $__range more precise in Prometheus
It is now always equivalent to `${__range_s}s`, rather than rounding
down to an integer multiple of the biggest possible unit. For example,
a range of 47 hours is now represented as `169200s` rather than `1d`.
Closes #21689.
* Update a unit test to match new __range calc
pull/22097/head
parent
e612d7a2f9
commit
02c779cfa3
Loading…
Reference in new issue