Working in Docker Grafana 8.1.5. Using time series graph, I'm plotting a Prometheus Counter source (that has one label) as a time series (by label), and need to fill all null/missing values as zeros.
This is the query applied to the Prometheus counter source, plotting the label code:
my_metric{code!=""}
The graph display works (just need to see the current counter value for each label variant, and the difference within the selected time range), but the new Grafana time series graph is missing an option that the Graph (old) has under Display > Stacking and null value > null value: null as zero, hence it now ends up with broken lines when null values occur.
Unfortunately, I cannot use the Graph (old) chart as I need the legend value difference, which only is available in the new time series graph.
I tried to add or on() vector(0) to the end of the query, but the condition does not get applied to the data series for each label variant, it rather adds a new data series all filled with zeros...
Thanks for any suggestions !