From c10bddce27d89c4daba7892d9fb1056e02ba38ca Mon Sep 17 00:00:00 2001 From: mphanias Date: Fri, 2 Feb 2024 09:45:07 +0530 Subject: [PATCH] OM163 - label and panel fixes 1. fixed job variable not shown properly 2. realigned panels 3. corrected labels --- .../dashboards/nodeexporter/hostview.json | 1118 ++++++++--------- 1 file changed, 552 insertions(+), 566 deletions(-) diff --git a/config/grafana/dashboards/nodeexporter/hostview.json b/config/grafana/dashboards/nodeexporter/hostview.json index 3479896..69cf416 100644 --- a/config/grafana/dashboards/nodeexporter/hostview.json +++ b/config/grafana/dashboards/nodeexporter/hostview.json @@ -133,7 +133,7 @@ "overrides": [] }, "gridPos": { - "h": 6, + "h": 4, "w": 4, "x": 0, "y": 1 @@ -177,13 +177,12 @@ "type": "prometheus", "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, - "description": "Busy state of all CPU cores together", + "description": "Total number of CPU cores", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, - "decimals": 1, "mappings": [ { "options": { @@ -195,39 +194,37 @@ "type": "special" } ], - "max": 100, - "min": 0, "thresholds": { "mode": "absolute", "steps": [ { - "color": "rgba(50, 172, 45, 0.97)", + "color": "green", "value": null }, { - "color": "rgba(237, 129, 40, 0.89)", - "value": 85 - }, - { - "color": "rgba(245, 54, 54, 0.9)", - "value": 95 + "color": "red", + "value": 80 } ] }, - "unit": "percent" + "unit": "short" }, "overrides": [] }, "gridPos": { - "h": 6, - "w": 14, + "h": 4, + "w": 5, "x": 4, "y": 1 }, - "id": 360, + "id": 321, "links": [], + "maxDataPoints": 100, "options": { - "orientation": "auto", + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", "reduceOptions": { "calcs": [ "last" @@ -235,8 +232,7 @@ "fields": "", "values": false }, - "showThresholdLabels": false, - "showThresholdMarkers": true + "textMode": "auto" }, "pluginVersion": "9.3.2", "targets": [ @@ -246,101 +242,65 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "exemplar": false, - "expr": " min(sum by( instance) (irate(node_cpu_seconds_total{job=\"$job\", cluster_name=\"$cluster_name\",instance=~\"$node\", mode!=\"idle\"}[$__rate_interval])) / scalar(sum ( irate(node_cpu_seconds_total{job=\"$job\", cluster_name=\"$cluster_name\",instance=~\"$node\", }[$__rate_interval]) ))*100 ) ", - "hide": false, - "instant": true, - "intervalFactor": 1, - "legendFormat": "Min ", - "range": false, - "refId": "A", - "step": 240 - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" - }, - "editorMode": "code", - "exemplar": false, - "expr": " avg(sum by( instance) (irate(node_cpu_seconds_total{job=\"$job\", cluster_name=\"$cluster_name\",instance=~\"$node\", mode!=\"idle\"}[$__rate_interval])) / scalar(sum ( irate(node_cpu_seconds_total{job=\"$job\", cluster_name=\"$cluster_name\",instance=~\"$node\", }[$__rate_interval]) ))*100 ) ", - "hide": false, - "instant": true, - "intervalFactor": 1, - "legendFormat": "Avg", - "range": false, - "refId": "B", - "step": 240 - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" - }, - "editorMode": "code", - "exemplar": false, - "expr": " max(sum by( instance) (irate(node_cpu_seconds_total{job=\"$job\", cluster_name=\"$cluster_name\",instance=~\"$node\", mode!=\"idle\"}[$__rate_interval])) / scalar(sum ( irate(node_cpu_seconds_total{job=\"$job\", cluster_name=\"$cluster_name\",instance=~\"$node\", }[$__rate_interval]) ))*100 ) ", - "hide": false, - "instant": true, - "intervalFactor": 1, - "legendFormat": "Max", - "range": false, - "refId": "C", - "step": 240 + "expr": "sum( count by (instance) (count by (cpu, instance) (node_cpu_seconds_total{job=\"$job\",cluster_name=\"$cluster_name\"}) ))", + "legendFormat": "Total CPU cores", + "range": true, + "refId": "A" } ], - "title": "% CPU Utilization (rate)", - "type": "gauge" + "title": "CPU Cores (total)", + "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, - "description": "", + "description": "Total number of CPU cores", "fieldConfig": { "defaults": { "color": { - "mode": "palette-classic" + "mode": "thresholds" }, - "links": [], "mappings": [], - "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] - }, - "unit": "short" + } }, "overrides": [] }, "gridPos": { - "h": 6, - "w": 6, - "x": 18, + "h": 4, + "w": 5, + "x": 9, "y": 1 }, - "id": 358, + "id": 356, "links": [], + "maxDataPoints": 100, "options": { - "displayMode": "basic", - "minVizHeight": 10, - "minVizWidth": 0, + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", "orientation": "vertical", "reduceOptions": { "calcs": [ - "last" + "lastNotNull" ], "fields": "", "values": false }, - "showUnfilled": true, - "valueMode": "color" + "textMode": "auto" }, "pluginVersion": "9.3.2", "targets": [ @@ -350,15 +310,10 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "exemplar": false, - "expr": " min(node_filefd_allocated{instance=~\"$node\",job=\"$job\",cluster_name=\"$cluster_name\"})", - "format": "time_series", - "instant": false, - "intervalFactor": 4, + "expr": " min(count by (instance) (count by (cpu, instance) (node_cpu_seconds_total{}) ))", "legendFormat": "Min", "range": true, - "refId": "A", - "step": 240 + "refId": "A" }, { "datasource": { @@ -366,16 +321,11 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "exemplar": false, - "expr": " avg(node_filefd_allocated{instance=~\"$node\",job=\"$job\",cluster_name=\"$cluster_name\"})", - "format": "time_series", + "expr": " avg(count by (instance) (count by (cpu, instance) (node_cpu_seconds_total{}) ))", "hide": false, - "instant": false, - "intervalFactor": 4, "legendFormat": "Avg", "range": true, - "refId": "B", - "step": 240 + "refId": "B" }, { "datasource": { @@ -383,20 +333,15 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "exemplar": false, - "expr": " max(node_filefd_allocated{instance=~\"$node\",job=\"$job\",cluster_name=\"$cluster_name\"})", - "format": "time_series", + "expr": " max(count by (instance) (count by (cpu, instance) (node_cpu_seconds_total{}) ))", "hide": false, - "instant": false, - "intervalFactor": 4, "legendFormat": "Max", "range": true, - "refId": "C", - "step": 240 + "refId": "C" } ], - "title": "File Descriptor (allocated)", - "type": "bargauge" + "title": "CPU Cores ", + "type": "stat" }, { "datasource": { @@ -407,7 +352,7 @@ "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" }, "links": [], "mappings": [], @@ -426,18 +371,18 @@ "overrides": [] }, "gridPos": { - "h": 5, + "h": 4, "w": 6, - "x": 0, - "y": 7 + "x": 14, + "y": 1 }, - "id": 345, + "id": 346, "links": [], "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", + "displayMode": "basic", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "vertical", "reduceOptions": { "calcs": [ "last" @@ -445,7 +390,8 @@ "fields": "", "values": false }, - "textMode": "auto" + "showUnfilled": true, + "valueMode": "color" }, "pluginVersion": "9.3.2", "targets": [ @@ -455,88 +401,48 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "sum(node_memory_MemTotal_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", + "expr": "min (node_memory_MemTotal_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", "format": "time_series", "hide": false, "intervalFactor": 1, - "legendFormat": "Total", + "legendFormat": "Min ", "range": true, - "refId": "B", + "refId": "min_free", "step": 240 - } - ], - "title": "Memory (total ) (bytes) ", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "bytes" }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 6, - "x": 6, - "y": 7 - }, - "id": 305, - "links": [], - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "avg(node_memory_MemTotal_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "Avg", + "range": true, + "refId": "avg_free", + "step": 240 }, - "textMode": "auto" - }, - "pluginVersion": "9.3.2", - "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "sum(node_memory_MemFree_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", + "expr": "max(node_memory_MemTotal_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", "format": "time_series", "hide": false, "intervalFactor": 1, - "legendFormat": "Unused", + "legendFormat": "Max", "range": true, "refId": "A", "step": 240 } ], - "title": "Memory (Unused ) (bytes) ", - "type": "stat" + "title": "Total Memory (bytes) ", + "type": "bargauge" }, { "datasource": { @@ -561,17 +467,17 @@ } ] }, - "unit": "bytes" + "unit": "short" }, "overrides": [] }, "gridPos": { - "h": 5, - "w": 6, - "x": 12, - "y": 7 + "h": 4, + "w": 4, + "x": 20, + "y": 1 }, - "id": 320, + "id": 358, "links": [], "options": { "displayMode": "basic", @@ -596,13 +502,14 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "min (node_memory_MemFree_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", + "exemplar": false, + "expr": " min(node_filefd_allocated{instance=~\"$node\",job=\"$job\",cluster_name=\"$cluster_name\"})", "format": "time_series", - "hide": false, - "intervalFactor": 1, - "legendFormat": "Min ", + "instant": false, + "intervalFactor": 4, + "legendFormat": "Min", "range": true, - "refId": "min_free", + "refId": "A", "step": 240 }, { @@ -611,13 +518,15 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "avg (node_memory_MemFree_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", + "exemplar": false, + "expr": " avg(node_filefd_allocated{instance=~\"$node\",job=\"$job\",cluster_name=\"$cluster_name\"})", "format": "time_series", "hide": false, - "intervalFactor": 1, + "instant": false, + "intervalFactor": 4, "legendFormat": "Avg", "range": true, - "refId": "avg_free", + "refId": "B", "step": 240 }, { @@ -626,17 +535,19 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "max (node_memory_MemFree_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", + "exemplar": false, + "expr": " max(node_filefd_allocated{instance=~\"$node\",job=\"$job\",cluster_name=\"$cluster_name\"})", "format": "time_series", "hide": false, - "intervalFactor": 1, + "instant": false, + "intervalFactor": 4, "legendFormat": "Max", "range": true, - "refId": "A", + "refId": "C", "step": 240 } ], - "title": "Memory (Unused ) (bytes) ", + "title": "File Descriptor (allocated)", "type": "bargauge" }, { @@ -644,55 +555,161 @@ "type": "prometheus", "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, + "description": "Busy state of all CPU cores together", "fieldConfig": { "defaults": { "color": { - "mode": "palette-classic" + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(50, 172, 45, 0.97)", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 85 + }, + { + "color": "rgba(245, 54, 54, 0.9)", + "value": 95 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 9, + "x": 0, + "y": 5 + }, + "id": 360, + "links": [], + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.3.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": " min(sum by( instance) (irate(node_cpu_seconds_total{job=\"$job\", cluster_name=\"$cluster_name\",instance=~\"$node\", mode!=\"idle\"}[$__rate_interval])) / scalar(sum ( irate(node_cpu_seconds_total{job=\"$job\", cluster_name=\"$cluster_name\",instance=~\"$node\", }[$__rate_interval]) ))*100 ) ", + "hide": false, + "instant": true, + "intervalFactor": 1, + "legendFormat": "Min ", + "range": false, + "refId": "A", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": " avg(sum by( instance) (irate(node_cpu_seconds_total{job=\"$job\", cluster_name=\"$cluster_name\",instance=~\"$node\", mode!=\"idle\"}[$__rate_interval])) / scalar(sum ( irate(node_cpu_seconds_total{job=\"$job\", cluster_name=\"$cluster_name\",instance=~\"$node\", }[$__rate_interval]) ))*100 ) ", + "hide": false, + "instant": true, + "intervalFactor": 1, + "legendFormat": "Avg", + "range": false, + "refId": "B", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": " max(sum by( instance) (irate(node_cpu_seconds_total{job=\"$job\", cluster_name=\"$cluster_name\",instance=~\"$node\", mode!=\"idle\"}[$__rate_interval])) / scalar(sum ( irate(node_cpu_seconds_total{job=\"$job\", cluster_name=\"$cluster_name\",instance=~\"$node\", }[$__rate_interval]) ))*100 ) ", + "hide": false, + "instant": true, + "intervalFactor": 1, + "legendFormat": "Max", + "range": false, + "refId": "C", + "step": 240 + } + ], + "title": "% CPU Utilization (rate)", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" }, "links": [], "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null - }, - { - "color": "red", - "value": 80 } ] }, - "unit": "pps" + "unit": "bytes" }, "overrides": [] }, "gridPos": { - "h": 5, - "w": 6, - "x": 18, - "y": 7 + "h": 4, + "w": 5, + "x": 9, + "y": 5 }, - "id": 355, + "id": 345, "links": [], "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", - "legend": { - "calcs": [ - "last", - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "width": 300 - }, - "orientation": "vertical", + "orientation": "auto", "reduceOptions": { "calcs": [ "last" @@ -700,11 +717,7 @@ "fields": "", "values": false }, - "textMode": "auto", - "tooltip": { - "mode": "multi", - "sort": "none" - } + "textMode": "auto" }, "pluginVersion": "9.3.2", "targets": [ @@ -714,17 +727,17 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "sum (irate(node_netstat_Tcp_RetransSegs{instance=~\"$node\",job=\"$job\",cluster_name=\"$cluster_name\"}[$__rate_interval] ))", - "format": "stat", - "interval": "", + "expr": "sum(node_memory_MemTotal_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", + "format": "time_series", + "hide": false, "intervalFactor": 1, - "legendFormat": "{{instance}}", + "legendFormat": "Total", "range": true, - "refId": "A", + "refId": "B", "step": 240 } ], - "title": "Network Traffic - retransmit (packets) (total) (rate)", + "title": "Memory (total ) (bytes) ", "type": "stat" }, { @@ -732,86 +745,41 @@ "type": "prometheus", "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, + "description": "", "fieldConfig": { "defaults": { "color": { - "mode": "palette-classic" + "mode": "thresholds" }, "links": [], "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null - }, - { - "color": "red", - "value": 80 } ] }, - "unit": "binBps" + "unit": "bytes" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "receive_packets_eth0" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#7EB26D", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "receive_packets_lo" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#E24D42", - "mode": "fixed" - } - } - ] - } - ] + "overrides": [] }, "gridPos": { - "h": 5, - "w": 8, - "x": 0, - "y": 12 + "h": 4, + "w": 4, + "x": 14, + "y": 5 }, - "id": 60, + "id": 305, "links": [], "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", - "legend": { - "calcs": [ - "last", - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "width": 300 - }, - "orientation": "vertical", + "orientation": "auto", "reduceOptions": { "calcs": [ "last" @@ -819,11 +787,7 @@ "fields": "", "values": false }, - "textMode": "auto", - "tooltip": { - "mode": "multi", - "sort": "none" - } + "textMode": "auto" }, "pluginVersion": "9.3.2", "targets": [ @@ -833,17 +797,17 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "sum by (device) (irate(node_network_receive_bytes_total{job=\"$job\",cluster_name=\"$cluster_name\", instance=~\"$node\",}[$__rate_interval]))", - "format": "stat", - "interval": "", + "expr": "sum(node_memory_MemFree_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", + "format": "time_series", + "hide": false, "intervalFactor": 1, - "legendFormat": "{{device}}", + "legendFormat": "Unused", "range": true, "refId": "A", "step": 240 } ], - "title": "Network Traffic - Received (bytes) (rate)", + "title": "Memory (Unused ) (bytes) ", "type": "stat" }, { @@ -851,6 +815,7 @@ "type": "prometheus", "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, + "description": "", "fieldConfig": { "defaults": { "color": { @@ -858,78 +823,32 @@ }, "links": [], "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null - }, - { - "color": "red", - "value": 80 } ] }, - "unit": "binBps" + "unit": "bytes" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "transmit_packets_eth0" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#7EB26D", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "transmit_packets_lo" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#E24D42", - "mode": "fixed" - } - } - ] - } - ] + "overrides": [] }, "gridPos": { - "h": 5, - "w": 8, - "x": 8, - "y": 12 + "h": 4, + "w": 6, + "x": 18, + "y": 5 }, - "id": 308, + "id": 320, "links": [], "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "legend": { - "calcs": [ - "last", - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "width": 300 - }, + "displayMode": "basic", + "minVizHeight": 10, + "minVizWidth": 0, "orientation": "vertical", "reduceOptions": { "calcs": [ @@ -938,11 +857,8 @@ "fields": "", "values": false }, - "textMode": "auto", - "tooltip": { - "mode": "multi", - "sort": "none" - } + "showUnfilled": true, + "valueMode": "color" }, "pluginVersion": "9.3.2", "targets": [ @@ -952,18 +868,48 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "sum by (device) (irate(node_network_transmit_bytes_total{instance=~\"$node\",job=\"$job\",cluster_name=\"$cluster_name\"}[$__rate_interval]))", - "format": "stat", - "interval": "", + "expr": "min (node_memory_MemFree_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", + "format": "time_series", + "hide": false, "intervalFactor": 1, - "legendFormat": "{{device}}", + "legendFormat": "Min ", "range": true, - "refId": "B", + "refId": "min_free", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "avg (node_memory_MemFree_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "Avg", + "range": true, + "refId": "avg_free", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_AEROSPIKE_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "max (node_memory_MemFree_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "Max", + "range": true, + "refId": "A", "step": 240 } ], - "title": "Network Traffic -Transmit (bytes) (rate)", - "type": "stat" + "title": "Memory (Unused ) (bytes) ", + "type": "bargauge" }, { "datasource": { @@ -992,46 +938,15 @@ }, "unit": "pps" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "transmit_packets_eth0" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#7EB26D", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "transmit_packets_lo" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#E24D42", - "mode": "fixed" - } - } - ] - } - ] + "overrides": [] }, "gridPos": { - "h": 5, - "w": 8, - "x": 16, - "y": 12 + "h": 4, + "w": 6, + "x": 18, + "y": 9 }, - "id": 354, + "id": 355, "links": [], "options": { "colorMode": "background", @@ -1071,54 +986,31 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "sum by (device) (irate(node_network_transmit_drop_total{instance=~\"$node\",job=\"$job\",cluster_name=\"$cluster_name\"}[$__rate_interval] ))", + "expr": "sum (irate(node_netstat_Tcp_RetransSegs{instance=~\"$node\",job=\"$job\",cluster_name=\"$cluster_name\"}[$__rate_interval] ))", "format": "stat", "interval": "", "intervalFactor": 1, - "legendFormat": "{{device}}", + "legendFormat": "{{instance}}", "range": true, "refId": "A", "step": 240 } ], - "title": "Network Traffic - drop (packets) (rate)", + "title": "Network Traffic - retransmit (packets) (total) (rate)", "type": "stat" }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 17 - }, - "id": 348, - "panels": [], - "title": "Configs comparision", - "type": "row" - }, { "datasource": { "type": "prometheus", "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, - "description": "Total number of CPU cores", "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], + "links": [], + "mappings": [], "thresholds": { "mode": "absolute", "steps": [ @@ -1132,24 +1024,66 @@ } ] }, - "unit": "short" + "unit": "binBps" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "receive_packets_eth0" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#7EB26D", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "receive_packets_lo" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#E24D42", + "mode": "fixed" + } + } + ] + } + ] }, "gridPos": { - "h": 6, - "w": 5, + "h": 3, + "w": 24, "x": 0, - "y": 18 + "y": 13 }, - "id": 321, + "id": 60, "links": [], - "maxDataPoints": 100, "options": { "colorMode": "background", - "graphMode": "none", + "graphMode": "area", "justifyMode": "auto", - "orientation": "horizontal", + "legend": { + "calcs": [ + "last", + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "orientation": "vertical", "reduceOptions": { "calcs": [ "last" @@ -1157,7 +1091,11 @@ "fields": "", "values": false }, - "textMode": "auto" + "textMode": "auto", + "tooltip": { + "mode": "multi", + "sort": "none" + } }, "pluginVersion": "9.3.2", "targets": [ @@ -1167,13 +1105,17 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "sum( count by (instance) (count by (cpu, instance) (node_cpu_seconds_total{job=\"$job\",cluster_name=\"$cluster_name\"}) ))", - "legendFormat": "Total CPU cores", + "expr": "sum by (device) (irate(node_network_receive_bytes_total{job=\"$job\",cluster_name=\"$cluster_name\", instance=~\"$node\",}[$__rate_interval]))", + "format": "stat", + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{device}}", "range": true, - "refId": "A" + "refId": "A", + "step": 240 } ], - "title": "CPU Cores (total)", + "title": "Network Traffic - Received (bytes) (rate)", "type": "stat" }, { @@ -1181,12 +1123,12 @@ "type": "prometheus", "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, - "description": "Total number of CPU cores", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, + "links": [], "mappings": [], "thresholds": { "mode": "absolute", @@ -1200,33 +1142,79 @@ "value": 80 } ] - } + }, + "unit": "binBps" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "transmit_packets_eth0" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#7EB26D", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "transmit_packets_lo" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#E24D42", + "mode": "fixed" + } + } + ] + } + ] }, "gridPos": { - "h": 6, - "w": 5, - "x": 5, - "y": 18 + "h": 3, + "w": 24, + "x": 0, + "y": 16 }, - "id": 356, + "id": 308, "links": [], - "maxDataPoints": 100, "options": { - "displayMode": "lcd", - "minVizHeight": 10, - "minVizWidth": 0, + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "legend": { + "calcs": [ + "last", + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, "orientation": "vertical", "reduceOptions": { "calcs": [ - "lastNotNull" + "last" ], "fields": "", "values": false }, - "showUnfilled": true, - "valueMode": "text" + "textMode": "auto", + "tooltip": { + "mode": "multi", + "sort": "none" + } }, "pluginVersion": "9.3.2", "targets": [ @@ -1236,45 +1224,24 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": " min(count by (instance) (count by (cpu, instance) (node_cpu_seconds_total{}) ))", - "legendFormat": "Min", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" - }, - "editorMode": "code", - "expr": " avg(count by (instance) (count by (cpu, instance) (node_cpu_seconds_total{}) ))", - "hide": false, - "legendFormat": "Avg", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" - }, - "editorMode": "code", - "expr": " max(count by (instance) (count by (cpu, instance) (node_cpu_seconds_total{}) ))", - "hide": false, - "legendFormat": "Max", + "expr": "sum by (device) (irate(node_network_transmit_bytes_total{instance=~\"$node\",job=\"$job\",cluster_name=\"$cluster_name\"}[$__rate_interval]))", + "format": "stat", + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{device}}", "range": true, - "refId": "C" + "refId": "B", + "step": 240 } ], - "title": "CPU Cores ", - "type": "bargauge" + "title": "Network Traffic -Transmit (bytes) (rate)", + "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, - "description": "", "fieldConfig": { "defaults": { "color": { @@ -1282,32 +1249,78 @@ }, "links": [], "mappings": [], - "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] }, - "unit": "bytes" + "unit": "pps" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "transmit_packets_eth0" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#7EB26D", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "transmit_packets_lo" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#E24D42", + "mode": "fixed" + } + } + ] + } + ] }, "gridPos": { - "h": 6, - "w": 6, - "x": 10, - "y": 18 + "h": 3, + "w": 24, + "x": 0, + "y": 19 }, - "id": 346, + "id": 354, "links": [], "options": { - "displayMode": "basic", - "minVizHeight": 10, - "minVizWidth": 0, + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "legend": { + "calcs": [ + "last", + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, "orientation": "vertical", "reduceOptions": { "calcs": [ @@ -1316,8 +1329,11 @@ "fields": "", "values": false }, - "showUnfilled": true, - "valueMode": "color" + "textMode": "auto", + "tooltip": { + "mode": "multi", + "sort": "none" + } }, "pluginVersion": "9.3.2", "targets": [ @@ -1327,48 +1343,18 @@ "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, "editorMode": "code", - "expr": "min (node_memory_MemTotal_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", - "format": "time_series", - "hide": false, - "intervalFactor": 1, - "legendFormat": "Min ", - "range": true, - "refId": "min_free", - "step": 240 - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "avg(node_memory_MemTotal_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", - "format": "time_series", - "hide": false, - "intervalFactor": 1, - "legendFormat": "Avg", - "range": true, - "refId": "avg_free", - "step": 240 - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_AEROSPIKE_PROMETHEUS}" - }, - "editorMode": "code", - "expr": "max(node_memory_MemTotal_bytes{job=\"$job\",cluster_name=\"$cluster_name\"})", - "format": "time_series", - "hide": false, + "expr": "sum by (device) (irate(node_network_transmit_drop_total{instance=~\"$node\",job=\"$job\",cluster_name=\"$cluster_name\"}[$__rate_interval] ))", + "format": "stat", + "interval": "", "intervalFactor": 1, - "legendFormat": "Max", + "legendFormat": "{{device}}", "range": true, "refId": "A", "step": 240 } ], - "title": "Total Memory (bytes) ", - "type": "bargauge" + "title": "Network Traffic - drop (packets) (rate)", + "type": "stat" }, { "collapsed": true, @@ -1380,7 +1366,7 @@ "h": 1, "w": 24, "x": 0, - "y": 24 + "y": 22 }, "id": 309, "panels": [ @@ -1427,7 +1413,7 @@ "h": 5, "w": 5, "x": 0, - "y": 25 + "y": 3 }, "id": 350, "links": [], @@ -1496,7 +1482,7 @@ "h": 5, "w": 5, "x": 5, - "y": 25 + "y": 3 }, "id": 352, "links": [], @@ -1566,7 +1552,7 @@ "h": 5, "w": 5, "x": 10, - "y": 25 + "y": 3 }, "id": 353, "links": [], @@ -1636,7 +1622,7 @@ "h": 5, "w": 7, "x": 15, - "y": 25 + "y": 3 }, "id": 349, "links": [], @@ -1740,7 +1726,7 @@ "h": 5, "w": 24, "x": 0, - "y": 30 + "y": 8 }, "id": 319, "links": [], @@ -1949,7 +1935,7 @@ "h": 6, "w": 12, "x": 0, - "y": 35 + "y": 13 }, "id": 77, "links": [], @@ -2204,7 +2190,7 @@ "h": 6, "w": 12, "x": 12, - "y": 35 + "y": 13 }, "id": 311, "links": [], @@ -2610,7 +2596,7 @@ "h": 6, "w": 12, "x": 0, - "y": 41 + "y": 19 }, "id": 175, "links": [], @@ -3042,7 +3028,7 @@ "h": 6, "w": 12, "x": 12, - "y": 41 + "y": 19 }, "id": 314, "links": [], @@ -3261,7 +3247,7 @@ "h": 6, "w": 12, "x": 0, - "y": 47 + "y": 25 }, "id": 176, "links": [], @@ -3387,7 +3373,7 @@ "h": 6, "w": 12, "x": 12, - "y": 47 + "y": 25 }, "id": 22, "links": [], @@ -3814,7 +3800,7 @@ "h": 6, "w": 12, "x": 0, - "y": 53 + "y": 31 }, "id": 9, "links": [], @@ -4240,7 +4226,7 @@ "h": 6, "w": 12, "x": 12, - "y": 53 + "y": 31 }, "id": 33, "links": [], @@ -4668,7 +4654,7 @@ "h": 6, "w": 12, "x": 0, - "y": 59 + "y": 37 }, "id": 313, "links": [], @@ -5087,7 +5073,7 @@ "h": 6, "w": 12, "x": 12, - "y": 59 + "y": 37 }, "id": 35, "links": [], @@ -5219,7 +5205,7 @@ "h": 6, "w": 12, "x": 0, - "y": 65 + "y": 43 }, "id": 312, "links": [], @@ -5626,7 +5612,7 @@ "h": 6, "w": 12, "x": 12, - "y": 65 + "y": 43 }, "id": 36, "links": [], @@ -5742,7 +5728,7 @@ "h": 6, "w": 12, "x": 0, - "y": 71 + "y": 49 }, "id": 43, "links": [], @@ -5873,7 +5859,7 @@ "h": 6, "w": 12, "x": 12, - "y": 71 + "y": 49 }, "id": 315, "links": [], @@ -6014,7 +6000,7 @@ "h": 6, "w": 12, "x": 0, - "y": 77 + "y": 55 }, "id": 318, "links": [], @@ -6152,7 +6138,7 @@ "h": 6, "w": 12, "x": 12, - "y": 77 + "y": 55 }, "id": 85, "links": [], @@ -6342,7 +6328,7 @@ "h": 6, "w": 12, "x": 0, - "y": 83 + "y": 61 }, "id": 316, "links": [], @@ -6533,7 +6519,7 @@ "h": 6, "w": 12, "x": 12, - "y": 83 + "y": 61 }, "id": 317, "links": [], @@ -6664,7 +6650,7 @@ "h": 6, "w": 12, "x": 0, - "y": 89 + "y": 67 }, "id": 146, "links": [], @@ -6779,7 +6765,7 @@ "h": 6, "w": 12, "x": 12, - "y": 89 + "y": 67 }, "id": 142, "links": [], @@ -6906,7 +6892,7 @@ "h": 6, "w": 12, "x": 0, - "y": 95 + "y": 73 }, "id": 143, "links": [], @@ -7033,7 +7019,7 @@ "h": 6, "w": 12, "x": 12, - "y": 95 + "y": 73 }, "id": 361, "links": [], @@ -7139,7 +7125,7 @@ "type": "prometheus", "uid": "${DS_AEROSPIKE_PROMETHEUS}" }, - "definition": "", + "definition": "label_values(node_uname_info,job)", "hide": 0, "includeAll": false, "label": "Job", @@ -7147,8 +7133,8 @@ "name": "job", "options": [], "query": { - "query": "label_values(node_uname_info, job)", - "refId": "Prometheus-job-Variable-Query" + "query": "label_values(node_uname_info,job)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", @@ -7286,6 +7272,6 @@ "timezone": "browser", "title": "Aerospike Host View", "uid": "U5PWhoNIZ", - "version": 4, + "version": 10, "weekStart": "" } \ No newline at end of file