From 47ae3b36200a5dec0f9d3af3f4da083e045f5fcd Mon Sep 17 00:00:00 2001 From: Robert Middleswarth Date: Mon, 15 Nov 2021 14:46:35 -0500 Subject: [PATCH] Metrics Tweak so it works on DietPi 64 and Pi OS bullseye --- grafana/dashboard_by_oijkn.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grafana/dashboard_by_oijkn.json b/grafana/dashboard_by_oijkn.json index ce69dd5..65d5d51 100644 --- a/grafana/dashboard_by_oijkn.json +++ b/grafana/dashboard_by_oijkn.json @@ -162,7 +162,7 @@ "pluginVersion": "8.2.2", "targets": [ { - "expr": "count(rate(container_last_seen{id=~\"/docker/.*\"}[5m]))", + "expr": "count(container_tasks_state{image!=""} and container_tasks_state{state=~"running"})", "format": "time_series", "hide": false, "interval": "",