Browse Source

fix(helm): grafana dashboard: add widget for sum of not ready secrets (#5086)

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.io>
Cédric de Saint Martin 8 months ago
parent
commit
d172fcf6db
1 changed files with 111 additions and 1 deletions
  1. 111 1
      deploy/charts/external-secrets/files/monitoring/grafana-dashboard.json

+ 111 - 1
deploy/charts/external-secrets/files/monitoring/grafana-dashboard.json

@@ -2007,6 +2007,116 @@
       ],
       "title": "Controllers",
       "type": "row"
+    },
+    {
+      "collapsed": true,
+      "gridPos": {
+        "h": 1,
+        "w": 24,
+        "x": 0,
+        "y": 24
+      },
+      "id": 150,
+      "panels": [
+        {
+          "datasource": {
+            "type": "prometheus",
+            "uid": "$datasource"
+          },
+          "fieldConfig": {
+            "defaults": {
+              "color": {
+                "mode": "palette-classic"
+              },
+              "custom": {
+                "axisBorderShow": false,
+                "axisCenteredZero": false,
+                "axisColorMode": "text",
+                "axisLabel": "",
+                "axisPlacement": "auto",
+                "barAlignment": 0,
+                "barWidthFactor": 0.6,
+                "drawStyle": "line",
+                "fillOpacity": 0,
+                "gradientMode": "none",
+                "hideFrom": {
+                  "legend": false,
+                  "tooltip": false,
+                  "viz": false
+                },
+                "insertNulls": false,
+                "lineInterpolation": "linear",
+                "lineWidth": 1,
+                "pointSize": 5,
+                "scaleDistribution": {
+                  "type": "linear"
+                },
+                "showPoints": "auto",
+                "spanNulls": false,
+                "stacking": {
+                  "group": "A",
+                  "mode": "none"
+                },
+                "thresholdsStyle": {
+                  "mode": "off"
+                }
+              },
+              "mappings": [],
+              "thresholds": {
+                "mode": "absolute",
+                "steps": [
+                  {
+                    "color": "green"
+                  },
+                  {
+                    "color": "red",
+                    "value": 80
+                  }
+                ]
+              }
+            },
+            "overrides": []
+          },
+          "gridPos": {
+            "h": 9,
+            "w": 24,
+            "x": 0,
+            "y": 25
+          },
+          "id": 151,
+          "options": {
+            "legend": {
+              "calcs": [],
+              "displayMode": "list",
+              "placement": "bottom",
+              "showLegend": true
+            },
+            "tooltip": {
+              "hideZeros": false,
+              "mode": "single",
+              "sort": "none"
+            }
+          },
+          "pluginVersion": "12.0.2",
+          "targets": [
+            {
+              "editorMode": "code",
+              "expr": "sum(externalsecret_status_condition{condition=\"Ready\", status=\"False\"})",
+              "legendFormat": "Not ready amount",
+              "range": true,
+              "refId": "A",
+              "datasource": {
+                "type": "prometheus",
+                "uid": "$datasource"
+              }
+            }
+          ],
+          "title": "Secrets not ready",
+          "type": "timeseries"
+        }
+      ],
+      "title": "Secrets",
+      "type": "row"
     }
   ],
   "refresh": "",
@@ -2054,6 +2164,6 @@
   "timezone": "",
   "title": "External Secrets Operator",
   "uid": "n4IdKaJVk",
-  "version": 10,
+  "version": 11,
   "weekStart": ""
 }