Update K8s Monitoring to support Grafana 8
[osm/devops.git] / installers / k8s / nodes-dashboard.yaml
index dc96e21..1d58f95 100644 (file)
@@ -57,71 +57,23 @@ data:
           "id": 179,
           "panels": [
             {
-              "cacheTimeout": null,
-              "colorBackground": false,
-              "colorPostfix": false,
-              "colorPrefix": false,
-              "colorValue": true,
-              "colors": [
-                "rgba(245, 54, 54, 0.9)",
-                "rgba(237, 129, 40, 0.89)",
-                "rgba(50, 172, 45, 0.97)"
-              ],
-              "datasource": "Prometheus",
-              "decimals": 1,
-              "description": "",
-              "format": "s",
-              "gauge": {
-                "maxValue": 100,
-                "minValue": 0,
-                "show": false,
-                "thresholdLabels": false,
-                "thresholdMarkers": true
-              },
+              "id": 15,
               "gridPos": {
                 "h": 6,
                 "w": 2,
                 "x": 0,
                 "y": 1
               },
+              "type": "stat",
+              "title": "System Uptime",
+              "datasource": "Prometheus",
+              "pluginVersion": "8.1.1",
               "hideTimeOverride": true,
-              "id": 15,
-              "interval": null,
-              "links": [],
-              "mappingType": 1,
-              "mappingTypes": [
-                {
-                  "name": "value to text",
-                  "value": 1
-                },
-                {
-                  "name": "range to text",
-                  "value": 2
-                }
-              ],
               "maxDataPoints": 100,
-              "nullPointMode": "null",
-              "nullText": null,
-              "options": {},
-              "pluginVersion": "6.4.2",
-              "postfix": "",
-              "postfixFontSize": "50%",
-              "prefix": "",
-              "prefixFontSize": "50%",
-              "rangeMaps": [
-                {
-                  "from": "null",
-                  "text": "N/A",
-                  "to": "null"
-                }
-              ],
-              "sparkline": {
-                "fillColor": "rgba(31, 118, 189, 0.18)",
-                "full": false,
-                "lineColor": "rgb(31, 120, 193)",
-                "show": false
-              },
-              "tableColumn": "",
+              "links": [],
+              "cacheTimeout": null,
+              "description": "",
+              "interval": null,
               "targets": [
                 {
                   "expr": "sum(time() - node_boot_time_seconds{instance=~\"$node\"})",
@@ -133,82 +85,77 @@ data:
                   "step": 40
                 }
               ],
-              "thresholds": "1,2",
-              "title": "System Uptime",
-              "type": "singlestat",
-              "valueFontSize": "70%",
-              "valueMaps": [
-                {
-                  "op": "=",
-                  "text": "N/A",
-                  "value": "null"
-                }
-              ],
-              "valueName": "current"
+              "fieldConfig": {
+                "defaults": {
+                  "thresholds": {
+                    "mode": "absolute",
+                    "steps": [
+                      {
+                        "value": null,
+                        "color": "rgba(245, 54, 54, 0.9)"
+                      },
+                      {
+                        "value": 1,
+                        "color": "rgba(237, 129, 40, 0.89)"
+                      },
+                      {
+                        "value": 2,
+                        "color": "rgba(50, 172, 45, 0.97)"
+                      }
+                    ]
+                  },
+                  "mappings": [
+                    {
+                      "type": "special",
+                      "options": {
+                        "match": "null",
+                        "result": {
+                          "text": "N/A"
+                        }
+                      }
+                    }
+                  ],
+                  "unit": "s",
+                  "decimals": 1,
+                  "color": {
+                    "mode": "thresholds"
+                  }
+                },
+                "overrides": []
+              },
+              "options": {
+                "reduceOptions": {
+                  "values": false,
+                  "calcs": [
+                    "lastNotNull"
+                  ],
+                  "fields": ""
+                },
+                "orientation": "horizontal",
+                "text": {},
+                "textMode": "auto",
+                "colorMode": "value",
+                "graphMode": "none",
+                "justifyMode": "auto"
+              }
             },
             {
-              "cacheTimeout": null,
-              "colorBackground": false,
-              "colorPostfix": false,
-              "colorValue": true,
-              "colors": [
-                "rgba(245, 54, 54, 0.9)",
-                "rgba(237, 129, 40, 0.89)",
-                "rgba(50, 172, 45, 0.97)"
-              ],
-              "datasource": "Prometheus",
-              "description": "",
-              "format": "short",
-              "gauge": {
-                "maxValue": 100,
-                "minValue": 0,
-                "show": false,
-                "thresholdLabels": false,
-                "thresholdMarkers": true
-              },
+              "id": 14,
               "gridPos": {
                 "h": 6,
                 "w": 2,
                 "x": 2,
                 "y": 1
               },
-              "id": 14,
-              "interval": null,
-              "links": [],
-              "mappingType": 1,
-              "mappingTypes": [
-                {
-                  "name": "value to text",
-                  "value": 1
-                },
-                {
-                  "name": "range to text",
-                  "value": 2
-                }
-              ],
+              "type": "stat",
+              "title": "CPU Cores",
+              "datasource": "Prometheus",
+              "pluginVersion": "8.1.1",
               "maxDataPoints": 100,
-              "maxPerRow": 6,
-              "nullPointMode": "null",
-              "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": false,
-                "lineColor": "rgb(31, 120, 193)",
-                "show": false
-              },
-              "tableColumn": "",
+              "links": [],
+              "cacheTimeout": null,
+              "description": "",
+              "interval": null,
               "targets": [
                 {
                   "expr": "sum(count(node_cpu_seconds_total{instance=~\"$node\", mode='system'}) by (cpu))",
@@ -220,82 +167,76 @@ data:
                   "step": 20
                 }
               ],
-              "thresholds": "1,2",
-              "title": "CPU Cores",
-              "type": "singlestat",
-              "valueFontSize": "70%",
-              "valueMaps": [
-                {
-                  "op": "=",
-                  "text": "N/A",
-                  "value": "null"
-                }
-              ],
-              "valueName": "current"
+              "fieldConfig": {
+                "defaults": {
+                  "thresholds": {
+                    "mode": "absolute",
+                    "steps": [
+                      {
+                        "value": null,
+                        "color": "rgba(245, 54, 54, 0.9)"
+                      },
+                      {
+                        "value": 1,
+                        "color": "rgba(237, 129, 40, 0.89)"
+                      },
+                      {
+                        "value": 2,
+                        "color": "rgba(50, 172, 45, 0.97)"
+                      }
+                    ]
+                  },
+                  "mappings": [
+                    {
+                      "type": "special",
+                      "options": {
+                        "match": "null",
+                        "result": {
+                          "text": "N/A"
+                        }
+                      }
+                    }
+                  ],
+                  "unit": "short",
+                  "color": {
+                    "mode": "thresholds"
+                  }
+                },
+                "overrides": []
+              },
+              "options": {
+                "reduceOptions": {
+                  "values": false,
+                  "calcs": [
+                    "lastNotNull"
+                  ],
+                  "fields": ""
+                },
+                "orientation": "horizontal",
+                "text": {},
+                "textMode": "auto",
+                "colorMode": "value",
+                "graphMode": "none",
+                "justifyMode": "auto"
+              }
             },
             {
-              "cacheTimeout": null,
-              "colorBackground": false,
-              "colorValue": true,
-              "colors": [
-                "rgba(245, 54, 54, 0.9)",
-                "rgba(237, 129, 40, 0.89)",
-                "rgba(50, 172, 45, 0.97)"
-              ],
-              "datasource": "Prometheus",
-              "decimals": 2,
-              "description": "",
-              "format": "bytes",
-              "gauge": {
-                "maxValue": 100,
-                "minValue": 0,
-                "show": false,
-                "thresholdLabels": false,
-                "thresholdMarkers": true
-              },
+              "id": 75,
               "gridPos": {
                 "h": 6,
                 "w": 2,
                 "x": 4,
                 "y": 1
               },
-              "id": 75,
-              "interval": null,
-              "links": [],
-              "mappingType": 1,
-              "mappingTypes": [
-                {
-                  "name": "value to text",
-                  "value": 1
-                },
-                {
-                  "name": "range to text",
-                  "value": 2
-                }
-              ],
+              "type": "stat",
+              "title": "Total RAM",
+              "datasource": "Prometheus",
+              "pluginVersion": "8.1.1",
               "maxDataPoints": 100,
-              "maxPerRow": 6,
-              "nullPointMode": "null",
-              "nullText": null,
-              "options": {},
-              "postfix": "",
-              "postfixFontSize": "70%",
-              "prefix": "",
-              "prefixFontSize": "50%",
-              "rangeMaps": [
-                {
-                  "from": "null",
-                  "text": "N/A",
-                  "to": "null"
-                }
-              ],
-              "sparkline": {
-                "fillColor": "rgba(31, 118, 189, 0.18)",
-                "full": false,
-                "lineColor": "rgb(31, 120, 193)",
-                "show": false
-              },
-              "tableColumn": "",
+              "links": [],
+              "cacheTimeout": null,
+              "description": "",
+              "interval": null,
               "targets": [
                 {
                   "expr": "sum(node_memory_MemTotal_bytes{instance=~\"$node\"})",
@@ -307,18 +248,59 @@ data:
                   "step": 20
                 }
               ],
-              "thresholds": "2,3",
-              "title": "Total RAM",
-              "type": "singlestat",
-              "valueFontSize": "70%",
-              "valueMaps": [
-                {
-                  "op": "=",
-                  "text": "N/A",
-                  "value": "null"
-                }
-              ],
-              "valueName": "current"
+              "fieldConfig": {
+                "defaults": {
+                  "thresholds": {
+                    "mode": "absolute",
+                    "steps": [
+                      {
+                        "value": null,
+                        "color": "rgba(245, 54, 54, 0.9)"
+                      },
+                      {
+                        "value": 2,
+                        "color": "rgba(237, 129, 40, 0.89)"
+                      },
+                      {
+                        "value": 3,
+                        "color": "rgba(50, 172, 45, 0.97)"
+                      }
+                    ]
+                  },
+                  "mappings": [
+                    {
+                      "type": "special",
+                      "options": {
+                        "match": "null",
+                        "result": {
+                          "text": "N/A"
+                        }
+                      }
+                    }
+                  ],
+                  "unit": "bytes",
+                  "decimals": 2,
+                  "color": {
+                    "mode": "thresholds"
+                  }
+                },
+                "overrides": []
+              },
+              "options": {
+                "reduceOptions": {
+                  "values": false,
+                  "calcs": [
+                    "lastNotNull"
+                  ],
+                  "fields": ""
+                },
+                "orientation": "horizontal",
+                "text": {},
+                "textMode": "auto",
+                "colorMode": "value",
+                "graphMode": "none",
+                "justifyMode": "auto"
+              }
             },
             {
               "datasource": "Prometheus",