Feature 11037 Installation of ingress controller in OSM community installer
[osm/devops.git] / installers / k8s / mysql-exporter-dashboard.yaml
index 32f081e..9c9a90b 100644 (file)
@@ -20,10 +20,9 @@ metadata:
   labels:
     app: prometheus-mysql-exporter-grafana
     grafana_dashboard: "1"
-    heritage: Tiller
   name: osm-monitoring-prometheus-mysql-exporter-grafana
   annotations:
-    k8s-sidecar-target-directory: "/tmp/dashboards/OSM Third Party Modules"
+    k8s-sidecar-target-directory: "/tmp/dashboards/Open Source MANO"
 data:
   mysql-exporter-dashboard.json: |-
     {
@@ -40,7 +39,7 @@ data:
           }
         ]
       },
-      "description": "Basic Mysql dashboard for the prometheus exporter ",
+      "description": "Mysql dashboard",
       "editable": true,
       "gnetId": 6239,
       "graphTooltip": 0,
@@ -62,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\"}",
@@ -129,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,
@@ -731,7 +726,7 @@ data:
           "dashLength": 10,
           "dashes": false,
           "datasource": "Prometheus",
-          "description": "The number of connections that were aborted because the client died without closing the connection properly. See Section B.5.2.10, “Communication Errors and Aborted Connections”.",
+          "description": "The number of connections that were aborted because the client died without closing the connection properly.",
           "fill": 1,
           "fillGradient": 0,
           "gridPos": {
@@ -820,7 +815,7 @@ data:
           "dashLength": 10,
           "dashes": false,
           "datasource": "Prometheus",
-          "description": "The number of failed attempts to connect to the MySQL server. See Section B.5.2.10, “Communication Errors and Aborted Connections”.\n\nFor additional connection-related information, check the Connection_errors_xxx status variables and the host_cache table.",
+          "description": "The number of failed attempts to connect to the MySQL server.",
           "fill": 1,
           "fillGradient": 0,
           "gridPos": {
@@ -1106,8 +1101,6 @@ data:
       "schemaVersion": 19,
       "style": "dark",
       "tags": [
-        "Databases",
-        "backgroundservices"
       ],
       "templating": {
         "list": [
@@ -1169,7 +1162,7 @@ data:
         ]
       },
       "timezone": "",
-      "title": "Mysql - Prometheus",
+      "title": "Mysql",
       "uid": "6-kPlS7ik",
       "version": 1
     }