Grafana / Graphite - Display number of series where count > 0

5.7k Views Asked by At

I have some user level histogram metrics. I want to display a singlestat in grafana that shows me the number of series where the count in histogram.bin_5000 > 0.

I can get it to display the number of series with countSeries. But, can't seem to get a filter to remove the series which are below a certain value.

With Count Series

enter image description here

With Count Series AND removeBelowValue

enter image description here

1

There are 1 best solutions below

1
On

The functions removeBelow* and removeAbove* (including removeBelowValue) actually do not remove series, rather just set null (None) to matching datapoints.

There are two solutions:

  1. use removeEmptySeries, that removes all metrics that have only null datapoints. This will also remove null metrics that existed before removeBelow*.

  2. instead of remove*-family use maximumBelow/Above, minimumBelow/Above. that remove (sic!) series