I have metric in InfluxDB, which is visualized and alerted by Grafana. It has a simple threshold
>N. I can select all data points, which breach the threshold with the condition
But I would like to count a number of breaches.
Any idea about InfluxDB function/selector/math which can be used in the query to count metric breaches?