Help me with this otherwise very simple task... I have a series of metrics that represent a certain virtual machine state. I want to plot a graph with the count of all metrics that have been between a certain range (35-51). This is my query:
countSeries(filterSeries(filterSeries(opennebula-performance.zones.opennebula-innologica.vms.3DC.*.vm_lcm_state, 'min' , '>', 35 ), 'max', '<', 51))
This seems to be working well when there is at least one metric in the range. However when there are none (and it's the common case since there aren't usually faulty VMs), Graphite returns just []
instead of series with zeroes. Grafana doesn't like this and plots no data
.
Why doesn't countSeries
return 0 when there are no matches? This will indeed plot a straight line at 0
for the whole period, but this is exactly what is needed here.
My Graphite version is 1.2.0-dev
, but on previous versions this didn't work too.