I'm displaying Prometheus query on a Grafana table.
That's the query (Counter
metric):
sum(increase(check_fail{app="monitor"}[20m])) by (reason)
The result is a table of failure reason and its count.
The problem is that the table is also showing reasons that happened 0 times in the time frame and I don't want to display them.
AFAIK it's not possible to hide them through Grafana.
I know prometheus has comparison operators but I wasn't able to apply them.