From 830020cdb0765ec7d3ac4fbf7abcd4f4ca20d4b0 Mon Sep 17 00:00:00 2001
From: Florian Sesser <florian@private.storage>
Date: Mon, 14 Mar 2022 13:22:59 +0000
Subject: [PATCH] Fix RAID alert going off with 0 degraded arrays

This should fix the current alerts for our RAID arrays.
It's only "should" because I can't test it proper without said
RAID arrays in the dev or staging machines.
---
 .../server/grafana-dashboards/resources-overview.json           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nixos/modules/monitoring/server/grafana-dashboards/resources-overview.json b/nixos/modules/monitoring/server/grafana-dashboards/resources-overview.json
index 8827f23e..99292e91 100644
--- a/nixos/modules/monitoring/server/grafana-dashboards/resources-overview.json
+++ b/nixos/modules/monitoring/server/grafana-dashboards/resources-overview.json
@@ -1310,7 +1310,7 @@
             },
             "reducer": {
               "params": [],
-              "type": "count"
+              "type": "last"
             },
             "type": "query"
           }
-- 
GitLab