I'm using Grafana to show show metrics collected by Prometheus.
I have a Gauge that it's value is calculated as follows:
100*(avg_ovet_time(metric_name[$__range]))
The problem is, metric_name
is not always collected over $__range
, and I want that in case that the value isn't provided (it's null/absent) it would be treated as 0. (Kind of fill value).
I couldn't find anyway to do this, can it be done in Grafana?