I have a service metric that returns either some positive value, or 0 in case of failure. I want to count how many seconds my service was failing during some time period.
E.g. the expression:
service_metric_name == 0
gives me a dashed line in Grafana:
Is there any way to count how many seconds my service was down for the last 2 hours?