From b6ea27567400d22ff710ddbacb8ba5fb46261151 Mon Sep 17 00:00:00 2001 From: oijkn Date: Wed, 26 Jan 2022 15:14:15 +0100 Subject: [PATCH] fix: set good queries for container https://github.com/oijkn/Docker-Raspberry-PI-Monitoring/issues/13 --- grafana/dashboard_by_oijkn.json | 857 ++++++++++++++++++++++++-------- 1 file changed, 643 insertions(+), 214 deletions(-) diff --git a/grafana/dashboard_by_oijkn.json b/grafana/dashboard_by_oijkn.json index 8964a24..9b9f928 100644 --- a/grafana/dashboard_by_oijkn.json +++ b/grafana/dashboard_by_oijkn.json @@ -24,15 +24,11 @@ "gnetId": 10566, "graphTooltip": 1, "id": 2, - "iteration": 1640730899939, + "iteration": 1643196554939, "links": [], "liveNow": false, "panels": [ { - "datasource": { - "type": "prometheus", - "uid": "t4f0shgRk" - }, "description": "Time during which Pi is in operation", "fieldConfig": { "defaults": { @@ -85,14 +81,19 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "8.4.0-46435pre", + "pluginVersion": "8.4.0-48917pre", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, + "exemplar": true, "expr": "time() - node_boot_time_seconds", "format": "time_series", "hide": false, "interval": "", - "intervalFactor": 2, + "intervalFactor": 1, "legendFormat": "", "refId": "A", "step": 1800 @@ -157,7 +158,7 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "8.4.0-46435pre", + "pluginVersion": "8.4.0-48917pre", "targets": [ { "datasource": { @@ -165,11 +166,11 @@ "uid": "t4f0shgRk" }, "exemplar": true, - "expr": "count(count by (name) (rate(container_tasks_state{image!=\"\", state=~\"running\"}[$__range])))", + "expr": "count(container_last_seen{instance=~\"$node\",image=~\"(.)+\"})", "format": "time_series", "hide": false, "interval": "", - "intervalFactor": 2, + "intervalFactor": 1, "legendFormat": "", "refId": "A", "step": 1800 @@ -179,10 +180,6 @@ "type": "stat" }, { - "datasource": { - "type": "prometheus", - "uid": "t4f0shgRk" - }, "description": "Busy state of all CPU cores together", "fieldConfig": { "defaults": { @@ -244,11 +241,15 @@ "showThresholdMarkers": true, "text": {} }, - "pluginVersion": "8.4.0-46435pre", + "pluginVersion": "8.4.0-48917pre", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "(((count(count(node_cpu_seconds_total) by (cpu))) - avg(sum by (mode)(rate(node_cpu_seconds_total{mode='idle'}[$__range])))) * 100) / count(count(node_cpu_seconds_total) by (cpu))", + "expr": "sum(rate(process_cpu_seconds_total[$interval])) * 100", "hide": false, "interval": "", "intervalFactor": 1, @@ -261,10 +262,6 @@ "type": "gauge" }, { - "datasource": { - "type": "prometheus", - "uid": "t4f0shgRk" - }, "description": "Non available RAM memory", "fieldConfig": { "defaults": { @@ -318,11 +315,15 @@ "showThresholdMarkers": true, "text": {} }, - "pluginVersion": "8.4.0-46435pre", + "pluginVersion": "8.4.0-48917pre", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "((node_memory_MemTotal_bytes - node_memory_MemFree_bytes) / (node_memory_MemTotal_bytes )) * 100", + "expr": "((container_memory_MemTotal_bytes - container_memory_MemFree_bytes) / (container_memory_MemTotal_bytes )) * 100", "format": "time_series", "hide": true, "interval": "", @@ -332,6 +333,10 @@ "step": 240 }, { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, "expr": "100 - ((node_memory_MemAvailable_bytes * 100) / node_memory_MemTotal_bytes)", "format": "time_series", @@ -347,10 +352,6 @@ "type": "gauge" }, { - "datasource": { - "type": "prometheus", - "uid": "t4f0shgRk" - }, "description": "Used Swap", "fieldConfig": { "defaults": { @@ -412,11 +413,15 @@ "showThresholdMarkers": true, "text": {} }, - "pluginVersion": "8.4.0-46435pre", + "pluginVersion": "8.4.0-48917pre", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "((node_memory_SwapTotal_bytes - node_memory_SwapFree_bytes) / (node_memory_SwapTotal_bytes )) * 100", + "expr": "(node_memory_SwapTotal_bytes - node_memory_SwapFree_bytes) / node_memory_SwapTotal_bytes * 100", "interval": "", "intervalFactor": 1, "legendFormat": "", @@ -493,7 +498,7 @@ "showThresholdMarkers": true, "text": {} }, - "pluginVersion": "8.4.0-46435pre", + "pluginVersion": "8.4.0-48917pre", "targets": [ { "exemplar": true, @@ -511,10 +516,6 @@ "type": "gauge" }, { - "datasource": { - "type": "prometheus", - "uid": "t4f0shgRk" - }, "description": "Total used disk space", "fieldConfig": { "defaults": { @@ -578,10 +579,15 @@ "showThresholdMarkers": true, "text": {} }, - "pluginVersion": "8.4.0-46435pre", + "pluginVersion": "8.4.0-48917pre", "targets": [ { - "expr": "min((node_filesystem_size_bytes{fstype=~\"ext4\"} - node_filesystem_free_bytes{fstype=~\"ext4\"} )/ node_filesystem_size_bytes{fstype=~\"ext4\"})", + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, + "exemplar": true, + "expr": "min((node_filesystem_size_bytes{fstype=~\"ext4\"} - node_filesystem_free_bytes{fstype=~\"ext4\"})/ node_filesystem_size_bytes{fstype=~\"ext4\"})", "format": "time_series", "hide": false, "interval": "", @@ -591,7 +597,7 @@ "step": 1800 } ], - "title": "Disk space", + "title": "Disk Usage", "type": "gauge" }, { @@ -662,7 +668,7 @@ "showThresholdMarkers": true, "text": {} }, - "pluginVersion": "8.4.0-46435pre", + "pluginVersion": "8.4.0-48917pre", "targets": [ { "exemplar": true, @@ -680,10 +686,6 @@ "type": "gauge" }, { - "datasource": { - "type": "prometheus", - "uid": "t4f0shgRk" - }, "fieldConfig": { "defaults": { "color": { @@ -766,14 +768,19 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "sum(rate(container_cpu_system_seconds_total[$__range]))", + "expr": "sum(rate(container_cpu_system_seconds_total[$interval]))", "format": "time_series", "hide": true, "interval": "", @@ -783,6 +790,10 @@ "step": 120 }, { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "expr": "sum(rate(container_cpu_system_seconds_total{name=~\".+\"}[1m]))", "format": "time_series", "hide": true, @@ -793,6 +804,10 @@ "step": 10 }, { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "expr": "sum(rate(container_cpu_system_seconds_total{id=\"/\"}[1m]))", "format": "time_series", "hide": true, @@ -804,6 +819,10 @@ "step": 20 }, { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "expr": "sum(rate(process_cpu_seconds_total[$interval])) * 100", "format": "time_series", "hide": true, @@ -815,6 +834,10 @@ "step": 600 }, { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "expr": "sum(rate(container_cpu_system_seconds_total{name=~\".+\"}[1m])) + sum(rate(container_cpu_system_seconds_total{id=\"/\"}[1m])) + sum(rate(process_cpu_seconds_total[1m]))", "format": "time_series", "hide": true, @@ -824,8 +847,12 @@ "step": 120 }, { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "100 - (avg by (instance) (irate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)", + "expr": "100 - (avg by (instance) (rate(node_cpu_seconds_total{mode=\"idle\",job=\"$job\"}[$interval])) * 100)", "format": "time_series", "hide": false, "interval": "", @@ -838,10 +865,6 @@ "type": "timeseries" }, { - "datasource": { - "type": "prometheus", - "uid": "t4f0shgRk" - }, "fieldConfig": { "defaults": { "color": { @@ -928,19 +951,24 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, "expr": "node_thermal_zone_temp{type=\"cpu-thermal\"}", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 2, - "legendFormat": "CPU", + "legendFormat": "Temp", "refId": "A", "step": 1800 } @@ -949,10 +977,6 @@ "type": "timeseries" }, { - "datasource": { - "type": "prometheus", - "uid": "t4f0shgRk" - }, "fieldConfig": { "defaults": { "color": { @@ -970,7 +994,7 @@ "tooltip": false, "viz": false }, - "lineInterpolation": "linear", + "lineInterpolation": "smooth", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { @@ -1019,16 +1043,21 @@ "placement": "right" }, "tooltip": { - "mode": "single" + "mode": "multi", + "sort": "none" } }, "pluginVersion": "8.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "rate(container_network_receive_bytes_total{name!=\"\"}[$__range])", + "expr": "sum(rate(container_network_receive_bytes_total{instance=~\"$node\",name=~\".+\"}[$interval])) by (name)", "format": "time_series", - "hide": true, + "hide": false, "interval": "", "intervalFactor": 2, "legendFormat": "{{name}}", @@ -1036,10 +1065,14 @@ "step": 240 }, { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "max(rate(container_network_transmit_bytes_total{name!=\"\"}[$__range])) by (name)", + "expr": "- rate(container_network_transmit_bytes_total{instance=~\"$node\",name=~\".+\"}[$interval])", "format": "time_series", - "hide": false, + "hide": true, "interval": "", "intervalFactor": 2, "legendFormat": "{{name}}", @@ -1051,10 +1084,6 @@ "type": "timeseries" }, { - "datasource": { - "type": "prometheus", - "uid": "t4f0shgRk" - }, "fieldConfig": { "defaults": { "color": { @@ -1072,7 +1101,7 @@ "tooltip": false, "viz": false }, - "lineInterpolation": "linear", + "lineInterpolation": "smooth", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { @@ -1121,14 +1150,19 @@ "placement": "right" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "max(rate(container_network_transmit_bytes_total{name!=\"\"}[$__range])) by (name)", + "expr": "sum(rate(container_network_transmit_bytes_total{instance=~\"$node\",name=~\".+\"}[$interval])) by (name)", "format": "time_series", "interval": "", "intervalFactor": 2, @@ -1137,8 +1171,12 @@ "step": 240 }, { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "rate(container_network_transmit_bytes_total{id=\"/\"}[$__range])", + "expr": "rate(container_network_transmit_bytes_total{instance=~\"$node\",id=\"/\"}[$interval])", "format": "time_series", "hide": true, "interval": "", @@ -1152,10 +1190,6 @@ "type": "timeseries" }, { - "datasource": { - "type": "prometheus", - "uid": "t4f0shgRk" - }, "description": "", "fieldConfig": { "defaults": { @@ -1224,14 +1258,19 @@ "placement": "right" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.2.1", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "sum without (dc,from,id,csv) (irate(container_fs_writes_bytes_total{image!=\"\",device!~\"/dev/dm.*\"}[$__range]))", + "expr": "sum without (dc,from,id,csv) (irate(container_fs_writes_bytes_total{image!=\"\",device!~\"/dev/dm.*\"}[$interval]))", "interval": "", "intervalFactor": 1, "legendFormat": "{{name}}", @@ -1242,10 +1281,6 @@ "type": "timeseries" }, { - "datasource": { - "type": "prometheus", - "uid": "t4f0shgRk" - }, "description": "", "fieldConfig": { "defaults": { @@ -1314,14 +1349,19 @@ "placement": "right" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.2.1", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "sum without (dc,from,id,csv) (irate(container_fs_reads_bytes_total{image!=\"\",device!~\"/dev/dm.*\"}[$__range]))", + "expr": "sum without (dc,from,id,csv) (irate(container_fs_reads_bytes_total{image!=\"\",device!~\"/dev/dm.*\"}[$interval]))", "interval": "", "intervalFactor": 1, "legendFormat": "{{name}}", @@ -1401,7 +1441,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.1.5", @@ -1528,7 +1569,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.1.5", @@ -1546,10 +1588,6 @@ "type": "timeseries" }, { - "datasource": { - "type": "prometheus", - "uid": "t4f0shgRk" - }, "description": "The number (after merges) of I/O requests completed per second for the device", "fieldConfig": { "defaults": { @@ -1905,7 +1943,7 @@ { "matcher": { "id": "byRegexp", - "options": "/.*Writes.*/" + "options": "/.*writes.*/" }, "properties": [ { @@ -1939,38 +1977,56 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.2.2", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "rate(node_disk_reads_completed_total[$__range])", + "expr": "irate(node_disk_read_bytes_total[1m])", + "hide": false, "interval": "", - "intervalFactor": 4, - "legendFormat": "{{device}} - Reads completed", + "intervalFactor": 1, + "legendFormat": "{{device}} - reads", "refId": "A", "step": 240 }, { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "- rate(node_disk_writes_completed_total[$__range])", + "expr": "- irate(node_disk_written_bytes_total[1m])", "interval": "", - "intervalFactor": 2, - "legendFormat": "{{device}} - Writes completed", + "intervalFactor": 1, + "legendFormat": "{{device}} - writes", "refId": "B", "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, + "exemplar": true, + "expr": "irate(node_disk_io_time_seconds_total[1m])", + "hide": true, + "interval": "", + "legendFormat": "{{device}} - io time", + "refId": "C" } ], "title": "Disk IO", "type": "timeseries" }, { - "datasource": { - "type": "prometheus", - "uid": "t4f0shgRk" - }, "fieldConfig": { "defaults": { "color": { @@ -2020,7 +2076,7 @@ { "matcher": { "id": "byRegexp", - "options": "trans.*" + "options": "sent.*" }, "properties": [ { @@ -2049,35 +2105,44 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.1.5", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "rate(node_network_receive_bytes_total{device=\"eth0\"}[$__range])*8", + "expr": "sum(rate(container_network_receive_bytes_total{instance=~\"$node\",id=\"/\"}[$interval])) by (id)", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 2, - "legendFormat": "recv {{device}}", + "legendFormat": "received {{device}}", "refId": "A", "step": 600 }, { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, "exemplar": true, - "expr": "- rate(node_network_transmit_bytes_total{device=\"eth0\"}[$__range])*8", + "expr": "- sum(rate(container_network_transmit_bytes_total{instance=~\"$node\",id=\"/\"}[$interval])) by (id)", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 2, - "legendFormat": "trans {{device}} ", + "legendFormat": "sent {{device}} ", "refId": "B", "step": 600 } ], - "title": "Network Traffic", + "title": "Network Traffic on Node", "type": "timeseries" }, { @@ -2151,7 +2216,8 @@ "placement": "right" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.1.5", @@ -2243,7 +2309,8 @@ "placement": "right" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.1.5", @@ -2343,7 +2410,8 @@ "placement": "right" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.1.5", @@ -2372,12 +2440,140 @@ "type": "timeseries" }, { - "columns": [], - "datasource": { - "type": "prometheus", - "uid": "t4f0shgRk" + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "displayMode": "auto" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "__name__" + }, + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #A" + }, + "properties": [ + { + "id": "displayName", + "value": "Used memory" + }, + { + "id": "unit", + "value": "bytes" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #B" + }, + "properties": [ + { + "id": "displayName", + "value": "Available memory" + }, + { + "id": "unit", + "value": "bytes" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #C" + }, + "properties": [ + { + "id": "displayName", + "value": "Limit memory" + }, + { + "id": "unit", + "value": "bytes" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + } + ] }, - "fontSize": "100%", "gridPos": { "h": 8, "w": 12, @@ -2386,96 +2582,24 @@ }, "id": 42, "links": [], - "scroll": true, - "showHeader": true, - "sort": { - "col": 2, - "desc": true - }, - "styles": [ - { - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "__name__", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "Used memory", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #A", - "thresholds": [], - "type": "number", - "unit": "bytes" - }, - { - "alias": "Available memory", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #B", - "thresholds": [], - "type": "number", - "unit": "bytes" - }, - { - "alias": "Limit memory", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value #C", - "thresholds": [], - "type": "number", - "unit": "bytes" + "show": false }, - { - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - } - ], + "showHeader": true + }, + "pluginVersion": "8.4.0-48917pre", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, + "exemplar": false, "expr": "max(container_memory_usage_bytes{name!=\"\"}) by (name)", "format": "table", "hide": false, @@ -2486,6 +2610,11 @@ "refId": "A" }, { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, + "exemplar": false, "expr": "max(container_memory_max_usage_bytes{name!=\"\"}-container_memory_usage_bytes{name!=\"\"})by (name)", "format": "table", "instant": true, @@ -2495,6 +2624,11 @@ "refId": "B" }, { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, + "exemplar": false, "expr": "max(container_memory_max_usage_bytes{name!=\"\"}) by (name)", "format": "table", "instant": true, @@ -2505,12 +2639,185 @@ } ], "title": "Memory usage per container", - "transform": "table", - "type": "table-old" + "transformations": [ + { + "id": "merge", + "options": { + "reducers": [] + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "table" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "fixed" + }, + "custom": { + "align": "auto", + "displayMode": "auto", + "filterable": false + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 44 + }, + "hideTimeOverride": false, + "id": 62, + "links": [], + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "8.4.0-48917pre", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, + "exemplar": true, + "expr": "cadvisor_version_info{instance=~\"$node\"}", + "format": "time_series", + "instant": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "cAdvisor Version: {{cadvisorVersion}}", + "refId": "A", + "step": 2 + }, + { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, + "exemplar": true, + "expr": "prometheus_build_info{}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "Prometheus Version: {{version}}", + "refId": "B", + "step": 2 + }, + { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, + "exemplar": true, + "expr": "node_exporter_build_info{instance=~\"$node\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "Node-Exporter Version: {{version}}", + "refId": "C", + "step": 2 + }, + { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, + "exemplar": true, + "expr": "cadvisor_version_info{instance=~\"$node\"}", + "hide": false, + "interval": "", + "intervalFactor": 1, + "legendFormat": "Docker Version: {{dockerVersion}}", + "refId": "D", + "step": 2 + }, + { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, + "exemplar": true, + "expr": "cadvisor_version_info{instance=~\"$node\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "Host OS Version: {{osVersion}}", + "refId": "E", + "step": 2 + }, + { + "datasource": { + "type": "prometheus", + "uid": "t4f0shgRk" + }, + "exemplar": true, + "expr": "cadvisor_version_info{instance=~\"$node\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "Host Kernel Version: {{kernelVersion}}", + "refId": "F", + "step": 2 + } + ], + "transformations": [ + { + "id": "reduce", + "options": { + "includeTimeField": false, + "labelsToFields": false, + "reducers": [ + "mean" + ] + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Mean": true + }, + "indexByName": {}, + "renameByName": { + "Field": "Stack Info", + "Mean": "" + } + } + } + ], + "type": "table" } ], - "refresh": "30s", - "schemaVersion": 34, + "refresh": "5m", + "schemaVersion": 35, "style": "dark", "tags": [ "prometheus", @@ -2520,33 +2827,155 @@ "templating": { "list": [ { - "auto": false, - "auto_count": 30, - "auto_min": "10s", + "auto": true, + "auto_count": 50, + "auto_min": "50s", "current": { "selected": false, - "text": "60s", - "value": "60s" + "text": "auto", + "value": "$__auto_interval_interval" }, - "hide": 2, + "hide": 0, "label": "Interval", "name": "interval", "options": [ { "selected": true, - "text": "60s", - "value": "60s" + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "2m", + "value": "2m" + }, + { + "selected": false, + "text": "3m", + "value": "3m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "7m", + "value": "7m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" } ], - "query": "60s", + "query": "30s,1m,2m,3m,5m,7m,10m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", "refresh": 2, "skipUrlSync": false, "type": "interval" + }, + { + "current": { + "selected": false, + "text": "prometheus", + "value": "prometheus" + }, + "definition": "label_values(container_cpu_user_seconds_total, job)", + "hide": 0, + "includeAll": false, + "label": "Job", + "multi": false, + "name": "job", + "options": [], + "query": { + "query": "label_values(container_cpu_user_seconds_total, job)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "type": "query" + }, + { + "current": { + "selected": false, + "text": "cadvisor:8080", + "value": "cadvisor:8080" + }, + "definition": "label_values(container_cpu_user_seconds_total{job=~\"$job\"}, instance)", + "hide": 0, + "includeAll": false, + "label": "Node", + "multi": false, + "name": "node", + "options": [], + "query": { + "query": "label_values(container_cpu_user_seconds_total{job=~\"$job\"}, instance)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "type": "query" } ] }, "time": { - "from": "now-30m", + "from": "now-6h", "to": "now" }, "timepicker": { @@ -2577,6 +3006,6 @@ "timezone": "browser", "title": "Docker and OS Metrics for Raspberry Pi", "uid": "Ss3q6hSZk", - "version": 36, + "version": 42, "weekStart": "" }