Update K8s Monitoring to support Grafana 8
[osm/devops.git] / installers / k8s / mysql-exporter-dashboard.yaml
index 7f65711..9c9a90b 100644 (file)
@@ -61,65 +61,20 @@ data:
           "type": "row"
         },
         {
-          "cacheTimeout": null,
-          "colorBackground": true,
-          "colorValue": false,
-          "colors": [
-            "#bf1b00",
-            "#508642",
-            "#ef843c"
-          ],
-          "datasource": "Prometheus",
-          "format": "none",
-          "gauge": {
-            "maxValue": 1,
-            "minValue": 0,
-            "show": false,
-            "thresholdLabels": false,
-            "thresholdMarkers": true
-          },
+          "id": 11,
           "gridPos": {
             "h": 7,
             "w": 6,
             "x": 0,
             "y": 1
           },
-          "id": 11,
-          "interval": null,
-          "links": [],
-          "mappingType": 1,
-          "mappingTypes": [
-            {
-              "name": "value to text",
-              "value": 1
-            },
-            {
-              "name": "range to text",
-              "value": 2
-            }
-          ],
+          "type": "stat",
+          "title": "Instance Up",
+          "datasource": "Prometheus",
           "maxDataPoints": 100,
-          "nullPointMode": "connected",
-          "nullText": null,
-          "options": {},
-          "postfix": "",
-          "postfixFontSize": "50%",
-          "prefix": "",
-          "prefixFontSize": "50%",
-          "rangeMaps": [
-            {
-              "from": "null",
-              "text": "N/A",
-              "to": "null"
-            }
-          ],
-          "sparkline": {
-            "fillColor": "rgba(31, 118, 189, 0.18)",
-            "full": true,
-            "lineColor": "rgb(31, 120, 193)",
-            "show": true
-          },
-          "tableColumn": "",
+          "links": [],
+          "cacheTimeout": null,
+          "interval": null,
           "targets": [
             {
               "expr": "mysql_up{release=\"$release\"}",
@@ -128,18 +83,59 @@ data:
               "refId": "A"
             }
           ],
-          "thresholds": "1,2",
-          "title": "Instance Up",
-          "type": "singlestat",
-          "valueFontSize": "80%",
-          "valueMaps": [
-            {
-              "op": "=",
-              "text": "N/A",
-              "value": "null"
-            }
-          ],
-          "valueName": "current"
+          "fieldConfig": {
+            "defaults": {
+              "thresholds": {
+                "mode": "absolute",
+                "steps": [
+                  {
+                    "value": null,
+                    "color": "#bf1b00"
+                  },
+                  {
+                    "value": 1,
+                    "color": "#508642"
+                  },
+                  {
+                    "value": 2,
+                    "color": "#ef843c"
+                  }
+                ]
+              },
+              "mappings": [
+                {
+                  "type": "special",
+                  "options": {
+                    "match": "null",
+                    "result": {
+                      "text": "N/A"
+                    }
+                  }
+                }
+              ],
+              "unit": "none",
+              "color": {
+                "mode": "thresholds"
+              }
+            },
+            "overrides": []
+          },
+          "options": {
+            "reduceOptions": {
+              "values": false,
+              "calcs": [
+                "lastNotNull"
+              ],
+              "fields": ""
+            },
+            "orientation": "horizontal",
+            "text": {},
+            "textMode": "auto",
+            "colorMode": "background",
+            "graphMode": "area",
+            "justifyMode": "auto"
+          },
+          "pluginVersion": "8.1.1"
         },
         {
           "cacheTimeout": null,