Join GitHub today
[Feature request] send dashboard from,to time range with /metrics/find graphite queries #8055
The /metrics/find graphite api method accepts "to" and "from" parameters (epoch timestamps).
It would be great if the graphite datasource could pass these parameters when the query editor lists series and when template variables are fetched. This would be extremely beneficial in environments that are very dynamic, which are becoming more common.
i envision there would be an indicator in the grafana editor that visualizes whether this time based filtering is enabled or not, and the user could toggle it on and off.
referenced this issue
Apr 25, 2017
this is now implemented in master. I could not include it in 4.4.2 as the changes was to substantive and I would like some feedback on it before committing it to a release.
from & until are now added in all metric looks ups from the query editor (panel metrics tab). That is when you click on select metric or an existing metric node. There is one exception and that is a call to metrics/find that validates that the current path exists & the last node is a leaf, this validation I think should not include panel time range as when the validation fails it will add a "select metric" node, which would be bad if it's just due to time range not having the current metric.
Template variables that have refresh option set to "On Time Range Change" will include from/until in metrics/find request, but variables with refresh option set to "On Dashboard Load" and "Never" will not include the time range in metrics/find calls.