From a456647a6f50a01afa9cc8fe0d6bcbc26df013e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Desvaux?= Date: Mon, 20 Mar 2023 16:42:32 +0100 Subject: [PATCH] update dash opensearch --- files/dashboards/opensearch.json | 1054 +++++++++++++++--------------- 1 file changed, 540 insertions(+), 514 deletions(-) diff --git a/files/dashboards/opensearch.json b/files/dashboards/opensearch.json index 6156757..e101453 100644 --- a/files/dashboards/opensearch.json +++ b/files/dashboards/opensearch.json @@ -2,24 +2,25 @@ "__inputs": [ { "name": "DS_PROMETHEUS", - "label": "prometheus", - "description": "Prometheus datasource", + "label": "Prometheus", + "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], + "__elements": {}, "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "7.5.10" + "version": "9.4.3" }, { "type": "panel", "id": "graph", - "name": "Graph", + "name": "Graph (old)", "version": "" }, { @@ -28,12 +29,6 @@ "name": "Prometheus", "version": "1.0.0" }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "" - }, { "type": "panel", "id": "stat", @@ -45,26 +40,39 @@ "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, "type": "dashboard" } ] }, "description": "OpenSearch cluster monitoring with OpenSearch Prometheus Exporter and Node Exporter", "editable": true, + "fiscalYearStartMonth": 0, "gnetId": 15178, "graphTooltip": 0, "id": null, - "iteration": 1635775268463, "links": [], + "liveNow": false, "panels": [ { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "yPhvsDP7k" + }, "gridPos": { "h": 1, "w": 24, @@ -73,12 +81,23 @@ }, "id": 8, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "yPhvsDP7k" + }, + "refId": "A" + } + ], "title": "Cluster", "type": "row" }, { - "cacheTimeout": null, - "datasource": "${DS_PROMETHEUS}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "", "fieldConfig": { "defaults": { @@ -87,28 +106,18 @@ }, "mappings": [ { - "from": "", - "id": 1, - "text": "green", - "to": "", - "type": 1, - "value": "0" - }, - { - "from": "", - "id": 2, - "text": "yellow", - "to": "", - "type": 1, - "value": "1" - }, - { - "from": "", - "id": 3, - "text": "red", - "to": "", - "type": 1, - "value": "2" + "options": { + "0": { + "text": "green" + }, + "1": { + "text": "yellow" + }, + "2": { + "text": "red" + } + }, + "type": "value" } ], "thresholds": { @@ -158,9 +167,13 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "exemplar": true, "expr": "sum(opensearch_cluster_status{cluster=~\"$cluster\"}) / count(opensearch_cluster_nodes_number{cluster=~\"$cluster\"})", "interval": "", @@ -170,13 +183,14 @@ "refId": "A" } ], - "timeFrom": null, - "timeShift": null, "title": "Cluster Status", "type": "stat" }, { - "datasource": "${DS_PROMETHEUS}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "", "fieldConfig": { "defaults": { @@ -220,9 +234,13 @@ }, "textMode": "auto" }, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "exemplar": true, "expr": "sum(opensearch_cluster_nodes_number{cluster=~\"$cluster\"}) / count(opensearch_cluster_nodes_number{cluster=~\"$cluster\"})", "interval": "", @@ -231,13 +249,14 @@ "refId": "A" } ], - "timeFrom": null, - "timeShift": null, "title": "Running Nodes", "type": "stat" }, { - "datasource": "${DS_PROMETHEUS}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "fieldConfig": { "defaults": { "color": { @@ -280,9 +299,13 @@ }, "textMode": "auto" }, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "exemplar": true, "expr": "sum(opensearch_cluster_datanodes_number{cluster=~\"$cluster\"}) / count(opensearch_cluster_datanodes_number{cluster=~\"$cluster\"})", "interval": "", @@ -295,7 +318,10 @@ "type": "stat" }, { - "datasource": "${DS_PROMETHEUS}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "fieldConfig": { "defaults": { "color": { @@ -342,9 +368,13 @@ }, "textMode": "auto" }, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "exemplar": true, "expr": "sum(opensearch_cluster_pending_tasks_number{cluster=~\"$cluster\"}) / count(opensearch_cluster_pending_tasks_number{cluster=~\"$cluster\"})", "interval": "", @@ -358,7 +388,10 @@ }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "yPhvsDP7k" + }, "gridPos": { "h": 1, "w": 24, @@ -367,11 +400,23 @@ }, "id": 12, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "yPhvsDP7k" + }, + "refId": "A" + } + ], "title": "Shards", "type": "row" }, { - "datasource": "${DS_PROMETHEUS}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "", "fieldConfig": { "defaults": { @@ -415,9 +460,13 @@ }, "textMode": "auto" }, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "exemplar": true, "expr": "sum(opensearch_cluster_shards_number{cluster=~\"$cluster\",type=\"active\"}) / count(opensearch_cluster_shards_number{cluster=~\"$cluster\",type=\"active\"})", "interval": "", @@ -430,7 +479,10 @@ "type": "stat" }, { - "datasource": "${DS_PROMETHEUS}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "fieldConfig": { "defaults": { "color": { @@ -473,9 +525,13 @@ }, "textMode": "auto" }, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "exemplar": true, "expr": "sum(opensearch_cluster_shards_number{cluster=~\"$cluster\",type=\"active_primary\"}) / count(opensearch_cluster_shards_number{cluster=~\"$cluster\",type=\"active_primary\"})", "interval": "", @@ -488,7 +544,10 @@ "type": "stat" }, { - "datasource": "${DS_PROMETHEUS}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "", "fieldConfig": { "defaults": { @@ -536,9 +595,13 @@ }, "textMode": "auto" }, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "exemplar": true, "expr": "sum(opensearch_cluster_shards_number{cluster=~\"$cluster\",type=\"initializing\"}) / count(opensearch_cluster_shards_number{cluster=~\"$cluster\",type=\"initializing\"})", "interval": "", @@ -551,7 +614,10 @@ "type": "stat" }, { - "datasource": "${DS_PROMETHEUS}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "fieldConfig": { "defaults": { "color": { @@ -598,9 +664,13 @@ }, "textMode": "auto" }, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "exemplar": true, "expr": "sum(opensearch_cluster_shards_number{cluster=~\"$cluster\",type=\"relocating\"}) / count(opensearch_cluster_shards_number{cluster=~\"$cluster\",type=\"relocating\"})", "interval": "", @@ -613,7 +683,10 @@ "type": "stat" }, { - "datasource": "${DS_PROMETHEUS}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "", "fieldConfig": { "defaults": { @@ -665,9 +738,13 @@ }, "textMode": "auto" }, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "exemplar": true, "expr": "sum(opensearch_cluster_shards_number{cluster=~\"$cluster\",type=\"unassigned\"}) / count(opensearch_cluster_shards_number{cluster=~\"$cluster\",type=\"unassigned\"})", "interval": "", @@ -681,7 +758,10 @@ }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "yPhvsDP7k" + }, "gridPos": { "h": 1, "w": 24, @@ -690,6 +770,15 @@ }, "id": 26, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "yPhvsDP7k" + }, + "refId": "A" + } + ], "title": "Node", "type": "row" }, @@ -698,7 +787,9 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "$datasource", + "datasource": { + "uid": "$datasource" + }, "decimals": 2, "description": "Basic CPU info", "fieldConfig": { @@ -734,7 +825,7 @@ "alertThreshold": true }, "percentage": true, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "pointradius": 2, "points": false, "renderer": "flot", @@ -765,6 +856,9 @@ "steppedLine": false, "targets": [ { + "datasource": { + "uid": "$datasource" + }, "expr": "sum by (instance)(irate(node_cpu_seconds_total{mode=\"system\",instance=~\".*$node.*\",job=\"$job\"}[5m])) * 100", "interval": "", "intervalFactor": 4, @@ -772,6 +866,9 @@ "refId": "A" }, { + "datasource": { + "uid": "$datasource" + }, "expr": "sum by (instance)(irate(node_cpu_seconds_total{mode='user',instance=~\".*$node.*\",job=\"$job\"}[5m])) * 100", "interval": "", "intervalFactor": 4, @@ -779,6 +876,9 @@ "refId": "B" }, { + "datasource": { + "uid": "$datasource" + }, "expr": "sum by (instance)(irate(node_cpu_seconds_total{mode='iowait',instance=~\".*$node.*\",job=\"$job\"}[5m])) * 100", "interval": "", "intervalFactor": 4, @@ -786,6 +886,9 @@ "refId": "C" }, { + "datasource": { + "uid": "$datasource" + }, "expr": "sum by (instance)(irate(node_cpu_seconds_total{mode=~\".*irq\",instance=~\".*$node.*\",job=\"$job\"}[5m])) * 100", "interval": "", "intervalFactor": 4, @@ -793,6 +896,9 @@ "refId": "D" }, { + "datasource": { + "uid": "$datasource" + }, "expr": "sum (irate(node_cpu_seconds_total{mode!='idle',mode!='user',mode!='system',mode!='iowait',mode!='irq',mode!='softirq',instance=~\".*$node.*\",job=\"$job\"}[5m])) * 100", "interval": "", "intervalFactor": 4, @@ -800,6 +906,9 @@ "refId": "E" }, { + "datasource": { + "uid": "$datasource" + }, "expr": "sum by (mode)(irate(node_cpu_seconds_total{mode='idle',instance=~\".*$node.*\",job=\"$job\"}[5m])) * 100", "interval": "", "intervalFactor": 4, @@ -808,9 +917,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "CPU Basic", "tooltip": { "shared": true, @@ -819,9 +926,7 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -829,25 +934,18 @@ { "$$hashKey": "object:1139", "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "$$hashKey": "object:1140", "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": false } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -855,7 +953,9 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "$datasource", + "datasource": { + "uid": "$datasource" + }, "description": "Basic network info per interface", "fieldConfig": { "defaults": { @@ -889,7 +989,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "pointradius": 2, "points": false, "renderer": "flot", @@ -899,6 +999,9 @@ "steppedLine": false, "targets": [ { + "datasource": { + "uid": "$datasource" + }, "expr": "irate(node_network_receive_bytes_total{instance=~\".*$node.*\",job=\"$job\"}[5m])*8", "interval": "", "intervalFactor": 4, @@ -906,6 +1009,9 @@ "refId": "A" }, { + "datasource": { + "uid": "$datasource" + }, "expr": "irate(node_network_transmit_bytes_total{instance=~\".*$node.*\",job=\"$job\"}[5m])*8", "interval": "", "intervalFactor": 4, @@ -914,9 +1020,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Network Traffic Basic", "tooltip": { "shared": true, @@ -925,38 +1029,32 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "yPhvsDP7k" + }, "gridPos": { "h": 1, "w": 24, @@ -965,6 +1063,15 @@ }, "id": 30, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "yPhvsDP7k" + }, + "refId": "A" + } + ], "title": "Documents", "type": "row" }, @@ -973,10 +1080,9 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "fill": 1, "fillGradient": 0, @@ -1005,7 +1111,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "pointradius": 2, "points": false, "renderer": "flot", @@ -1015,6 +1121,10 @@ "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "exemplar": true, "expr": "sum(opensearch_indices_merges_total_docs_count{cluster=~\"$cluster\"})", "interval": "", @@ -1025,9 +1135,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Documents Indexed", "tooltip": { "shared": true, @@ -1036,9 +1144,7 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -1046,25 +1152,19 @@ { "$$hashKey": "object:1068", "format": "short", - "label": null, "logBase": 1, - "max": null, "min": "0", "show": true }, { "$$hashKey": "object:1069", "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -1072,7 +1172,9 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "$datasource", + "datasource": { + "uid": "$datasource" + }, "editable": true, "error": false, "fieldConfig": { @@ -1110,7 +1212,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "pointradius": 5, "points": false, "renderer": "flot", @@ -1120,6 +1222,9 @@ "steppedLine": false, "targets": [ { + "datasource": { + "uid": "$datasource" + }, "exemplar": true, "expr": "sum(opensearch_indices_store_size_bytes{cluster=~\"$cluster\"})", "format": "time_series", @@ -1131,9 +1236,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Index Size", "tooltip": { "msResolution": true, @@ -1143,9 +1246,7 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -1154,7 +1255,6 @@ "$$hashKey": "object:672", "format": "bytes", "logBase": 1, - "max": null, "min": 0, "show": true }, @@ -1162,14 +1262,11 @@ "$$hashKey": "object:673", "format": "short", "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -1177,7 +1274,9 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "$datasource", + "datasource": { + "uid": "$datasource" + }, "fieldConfig": { "defaults": { "links": [] @@ -1212,7 +1311,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "pointradius": 5, "points": false, "renderer": "flot", @@ -1222,6 +1321,9 @@ "steppedLine": false, "targets": [ { + "datasource": { + "uid": "$datasource" + }, "exemplar": true, "expr": "rate(opensearch_indices_indexing_index_count{cluster=~\"$cluster\"}[1h])", "interval": "", @@ -1230,9 +1332,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Documents Indexed Rate", "tooltip": { "shared": true, @@ -1241,9 +1341,7 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -1253,23 +1351,17 @@ "format": "short", "label": "Documents/s", "logBase": 1, - "max": null, - "min": null, "show": true }, { "$$hashKey": "object:758", "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -1277,7 +1369,9 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "$datasource", + "datasource": { + "uid": "$datasource" + }, "fieldConfig": { "defaults": { "links": [] @@ -1312,7 +1406,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "pointradius": 5, "points": false, "renderer": "flot", @@ -1322,6 +1416,9 @@ "steppedLine": false, "targets": [ { + "datasource": { + "uid": "$datasource" + }, "exemplar": true, "expr": "rate(opensearch_indices_search_fetch_count{cluster=~\"$cluster\"}[1h])", "interval": "", @@ -1330,9 +1427,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Query Rate", "tooltip": { "shared": true, @@ -1341,9 +1436,7 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -1353,23 +1446,17 @@ "format": "short", "label": "Queris/s", "logBase": 1, - "max": null, - "min": null, "show": true }, { "$$hashKey": "object:843", "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -1377,7 +1464,9 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "$datasource", + "datasource": { + "uid": "$datasource" + }, "editable": true, "error": false, "fieldConfig": { @@ -1415,7 +1504,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "pointradius": 5, "points": false, "renderer": "flot", @@ -1425,6 +1514,9 @@ "steppedLine": false, "targets": [ { + "datasource": { + "uid": "$datasource" + }, "exemplar": true, "expr": "sum(opensearch_threadpool_tasks_number{cluster=~\"$cluster\", name!=\"management\", type=\"queue\"}) by (name)", "interval": "", @@ -1435,9 +1527,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Queue Count", "tooltip": { "msResolution": true, @@ -1447,9 +1537,7 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -1458,27 +1546,25 @@ "$$hashKey": "object:2135", "format": "short", "logBase": 1, - "max": null, - "min": null, "show": true }, { "$$hashKey": "object:2136", "format": "short", "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "yPhvsDP7k" + }, "gridPos": { "h": 1, "w": 24, @@ -1487,32 +1573,55 @@ }, "id": 34, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "yPhvsDP7k" + }, + "refId": "A" + } + ], "title": "System", "type": "row" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "$datasource", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "uid": "$datasource" }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] }, "gridPos": { "h": 3, @@ -1520,44 +1629,29 @@ "x": 0, "y": 45 }, - "height": "", "id": 36, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "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": true + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.4.3", "targets": [ { + "datasource": { + "uid": "$datasource" + }, "exemplar": true, "expr": "sum(node_memory_MemTotal_bytes{instance=~\"$node.*\"})", "interval": "1800", @@ -1566,42 +1660,46 @@ "refId": "A" } ], - "thresholds": "", "title": "Total Memory", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "$datasource", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "uid": "$datasource" }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] }, "gridPos": { "h": 3, @@ -1609,44 +1707,29 @@ "x": 6, "y": 45 }, - "height": "", "id": 38, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "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": true + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.4.3", "targets": [ { + "datasource": { + "uid": "$datasource" + }, "expr": "sum(node_memory_MemFree_bytes{instance=~\"$node.*\"})", "interval": "1800", "intervalFactor": 2, @@ -1654,42 +1737,46 @@ "refId": "A" } ], - "thresholds": "", "title": "Total Memory Free", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "$datasource", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "uid": "$datasource" }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] }, "gridPos": { "h": 3, @@ -1697,44 +1784,29 @@ "x": 12, "y": 45 }, - "height": "", "id": 40, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "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": true + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.4.3", "targets": [ { + "datasource": { + "uid": "$datasource" + }, "expr": "sum(node_memory_MemAvailable_bytes{instance=~\"$node.*\"})", "interval": "1800", "intervalFactor": 2, @@ -1742,42 +1814,46 @@ "refId": "A" } ], - "thresholds": "", "title": "Total Memory Available", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "$datasource", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": {}, - "overrides": [] + "datasource": { + "uid": "$datasource" }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] }, "gridPos": { "h": 3, @@ -1785,44 +1861,29 @@ "x": 18, "y": 45 }, - "height": "", "id": 42, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "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": true + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.4.3", "targets": [ { + "datasource": { + "uid": "$datasource" + }, "expr": "sum(node_filesystem_free_bytes{instance=~\"$node.*\", mountpoint=\"/\"})", "interval": "1800", "intervalFactor": 2, @@ -1830,25 +1891,17 @@ "refId": "A" } ], - "thresholds": "", "title": "Total Disk Available", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, - "datasource": "$datasource", + "datasource": { + "uid": "$datasource" + }, "editable": true, "error": false, "fieldConfig": { @@ -1885,7 +1938,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "pointradius": 5, "points": false, "renderer": "flot", @@ -1895,6 +1948,9 @@ "steppedLine": false, "targets": [ { + "datasource": { + "uid": "$datasource" + }, "exemplar": true, "expr": "sum(opensearch_threadpool_threads_number{cluster=~\"$cluster\", name!=\"management\", type=\"active\"}) by (name)", "format": "time_series", @@ -1906,9 +1962,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Thread Pools", "tooltip": { "msResolution": true, @@ -1918,9 +1972,7 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -1929,22 +1981,17 @@ "$$hashKey": "object:168", "format": "short", "logBase": 1, - "max": null, - "min": null, "show": true }, { "$$hashKey": "object:169", "format": "short", "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -1952,7 +1999,9 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "$datasource", + "datasource": { + "uid": "$datasource" + }, "editable": true, "error": false, "fieldConfig": { @@ -1989,7 +2038,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "pointradius": 5, "points": false, "renderer": "flot", @@ -1999,6 +2048,9 @@ "steppedLine": false, "targets": [ { + "datasource": { + "uid": "$datasource" + }, "exemplar": true, "expr": "rate(opensearch_threadpool_threads_count{cluster=~\"$cluster\", name!=\"management\", type=\"rejected\"}[5m])", "interval": "", @@ -2009,9 +2061,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Thread pool rejections", "tooltip": { "msResolution": true, @@ -2021,9 +2071,7 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -2032,22 +2080,17 @@ "$$hashKey": "object:419", "format": "short", "logBase": 1, - "max": null, - "min": null, "show": true }, { "$$hashKey": "object:420", "format": "short", "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -2055,7 +2098,9 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "$datasource", + "datasource": { + "uid": "$datasource" + }, "fieldConfig": { "defaults": { "links": [] @@ -2089,7 +2134,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "pointradius": 5, "points": false, "renderer": "flot", @@ -2108,6 +2153,9 @@ "type": "date_histogram" } ], + "datasource": { + "uid": "$datasource" + }, "dsType": "elasticsearch", "exemplar": true, "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node.*\"}[5m])) by(mode) * 100", @@ -2128,9 +2176,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Avg. CPU Usage", "tooltip": { "shared": true, @@ -2139,9 +2185,7 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -2151,23 +2195,18 @@ "format": "short", "label": "", "logBase": 1, - "max": null, "min": "0", "show": true }, { "$$hashKey": "object:2849", "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -2175,7 +2214,9 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "$datasource", + "datasource": { + "uid": "$datasource" + }, "editable": true, "error": false, "fieldConfig": { @@ -2214,7 +2255,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "pointradius": 5, "points": false, "renderer": "flot", @@ -2224,6 +2265,9 @@ "steppedLine": false, "targets": [ { + "datasource": { + "uid": "$datasource" + }, "exemplar": true, "expr": "avg_over_time(opensearch_jvm_mem_heap_used_bytes{cluster=~\"$cluster\"}[15m]) / opensearch_jvm_mem_heap_max_bytes{cluster=~\"$cluster\"}", "format": "time_series", @@ -2235,9 +2279,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Avg Heap in 15min", "tooltip": { "msResolution": true, @@ -2247,9 +2289,7 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -2266,16 +2306,12 @@ { "$$hashKey": "object:1446", "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": false } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -2283,7 +2319,9 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "$datasource", + "datasource": { + "uid": "$datasource" + }, "editable": true, "error": false, "fieldConfig": { @@ -2321,7 +2359,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "pointradius": 5, "points": false, "renderer": "flot", @@ -2331,6 +2369,9 @@ "steppedLine": false, "targets": [ { + "datasource": { + "uid": "$datasource" + }, "exemplar": true, "expr": "sum(rate(opensearch_transport_rx_packets_count{cluster=~\"$cluster\"}[5m]))", "format": "time_series", @@ -2341,6 +2382,9 @@ "step": 240 }, { + "datasource": { + "uid": "$datasource" + }, "exemplar": true, "expr": "sum(rate(opensearch_transport_tx_packets_count{cluster=~\"$cluster\"}[5m])) * -1", "format": "time_series", @@ -2352,9 +2396,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "RX/TX Rate 5m", "tooltip": { "msResolution": true, @@ -2364,9 +2406,7 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -2375,22 +2415,17 @@ "$$hashKey": "object:504", "format": "short", "logBase": 1, - "max": null, - "min": null, "show": true }, { "$$hashKey": "object:505", "format": "short", "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -2398,7 +2433,9 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "$datasource", + "datasource": { + "uid": "$datasource" + }, "editable": true, "error": false, "fieldConfig": { @@ -2435,7 +2472,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.10", + "pluginVersion": "9.4.3", "pointradius": 5, "points": false, "renderer": "flot", @@ -2445,6 +2482,9 @@ "steppedLine": false, "targets": [ { + "datasource": { + "uid": "$datasource" + }, "exemplar": true, "expr": "irate(opensearch_jvm_gc_collection_time_seconds{cluster=~\"$cluster\"}[5m])", "interval": "", @@ -2455,9 +2495,7 @@ } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "GC seconds", "tooltip": { "msResolution": true, @@ -2467,9 +2505,7 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, @@ -2478,41 +2514,35 @@ "$$hashKey": "object:2952", "format": "short", "logBase": 1, - "max": null, - "min": null, "show": true }, { "$$hashKey": "object:2953", "format": "short", "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } } ], - "schemaVersion": 27, + "refresh": "", + "revision": 1, + "schemaVersion": 38, "style": "dark", "tags": [], "templating": { "list": [ { "current": { - "selected": false, - "text": "prometheus", - "value": "prometheus" + "selected": true, + "text": "Prometheus", + "value": "Prometheus" }, - "description": null, - "error": null, "hide": 0, "includeAll": false, - "label": null, "multi": false, "name": "datasource", "options": [], @@ -2524,15 +2554,14 @@ "type": "datasource" }, { - "allValue": null, "current": {}, - "datasource": "${DS_PROMETHEUS}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "definition": "label_values(opensearch_cluster_status{}, cluster)", - "description": null, - "error": null, "hide": 0, "includeAll": false, - "label": null, "multi": false, "name": "cluster", "options": [], @@ -2545,18 +2574,17 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, "current": {}, - "datasource": "${DS_PROMETHEUS}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "definition": "label_values(node_uname_info{job=~\".*kubernetes.*|.*node_exporters.*\"}, job)", - "description": null, - "error": null, "hide": 0, "includeAll": false, "label": "Job", @@ -2572,18 +2600,17 @@ "skipUrlSync": false, "sort": 5, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, "current": {}, - "datasource": "${DS_PROMETHEUS}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "definition": "label_values(node_uname_info{job=\"$job\"}, nodename)", - "description": null, - "error": null, "hide": 0, "includeAll": false, "label": "Node name", @@ -2599,18 +2626,17 @@ "skipUrlSync": false, "sort": 5, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, "current": {}, - "datasource": "${DS_PROMETHEUS}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "definition": "label_values(node_uname_info{job=\"$job\", nodename=\"$nodename\"}, instance)", - "description": null, - "error": null, "hide": 0, "includeAll": false, "label": "Instance", @@ -2626,7 +2652,6 @@ "skipUrlSync": false, "sort": 5, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -2639,7 +2664,8 @@ }, "timepicker": {}, "timezone": "browser", - "title": "OpenSearch", - "uid": "X1WSwkF7k", - "version": 25 -} + "title": "OpenSearch Prometheus", + "uid": "X1WSwkF7kE", + "version": 1, + "weekStart": "" +} \ No newline at end of file