From 03e362e8f34a89f53acf815915fd41a6ad03f85a Mon Sep 17 00:00:00 2001 From: Dedy Martadinata S Date: Tue, 18 Oct 2022 09:16:50 +0700 Subject: [PATCH] Fixing dashboard temp (#100) --- configs/rpi_dashboard/amd_rpi_dashboard.json | 1245 ++++++++++-------- 1 file changed, 703 insertions(+), 542 deletions(-) diff --git a/configs/rpi_dashboard/amd_rpi_dashboard.json b/configs/rpi_dashboard/amd_rpi_dashboard.json index 6ff4453..e682e98 100644 --- a/configs/rpi_dashboard/amd_rpi_dashboard.json +++ b/configs/rpi_dashboard/amd_rpi_dashboard.json @@ -1,4 +1,53 @@ { + "__inputs": [ + { + "name": "DS_PROMETHEUS", + "label": "Prometheus", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "gauge", + "name": "Gauge", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.2.0" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], "annotations": { "list": [ { @@ -21,19 +70,19 @@ } ] }, - "description": "Dashboard with details of the container and host OS metrics for Pi-Hosted", + "description": "Modified dashboard with details of the container and host OS metrics for Raspberry Pi by Oijkn to work with x86_64 platform", "editable": true, "fiscalYearStartMonth": 0, "gnetId": 15120, "graphTooltip": 1, - "id": 2, + "id": null, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "description": "Time during which Pi is in operation", "fieldConfig": { @@ -92,7 +141,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "time() - node_boot_time_seconds", @@ -111,7 +160,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "description": "Total containers running", "fieldConfig": { @@ -173,7 +222,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "count(container_last_seen{instance=~\"$node\",image=~\"(.)+\"})", @@ -192,7 +241,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "description": "Busy state of all CPU cores together", "fieldConfig": { @@ -260,7 +309,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "sum(rate(process_cpu_seconds_total[$interval])) * 100", @@ -278,7 +327,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "description": "Non available RAM memory", "fieldConfig": { @@ -338,7 +387,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "((container_memory_MemTotal_bytes - container_memory_MemFree_bytes) / (container_memory_MemTotal_bytes )) * 100", @@ -353,7 +402,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "100 - ((node_memory_MemAvailable_bytes * 100) / node_memory_MemTotal_bytes)", @@ -372,7 +421,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "description": "Used Swap", "fieldConfig": { @@ -440,7 +489,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "(node_memory_SwapTotal_bytes - node_memory_SwapFree_bytes) / node_memory_SwapTotal_bytes * 100", @@ -457,7 +506,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "description": "Busy state of all CPU cores together (5 min average)", "fieldConfig": { @@ -525,7 +574,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "avg(node_load5) / count(count(node_cpu_seconds_total) by (cpu)) * 100", @@ -544,7 +593,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "description": "Total used disk space", "fieldConfig": { @@ -614,7 +663,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "min((node_filesystem_size_bytes{fstype=~\"ext4\"} - node_filesystem_free_bytes{fstype=~\"ext4\"})/ node_filesystem_size_bytes{fstype=~\"ext4\"})", @@ -633,7 +682,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "description": "Hardware temperature", "fieldConfig": { @@ -703,15 +752,17 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, + "editorMode": "code", "exemplar": true, - "expr": "node_thermal_zone_temp{type=\"cpu-thermal\"}", + "expr": "node_thermal_zone_temp{type=\"x86_pkg_temp\"}", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 2, "legendFormat": "", + "range": true, "refId": "A", "step": 1800 } @@ -722,7 +773,314 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "{id=\"/\",instance=\"cadvisor:8080\",job=\"prometheus\"}" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#BA43A9", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 4 + }, + "id": 5, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.1.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "sum(rate(container_cpu_system_seconds_total[$interval]))", + "format": "time_series", + "hide": true, + "interval": "", + "intervalFactor": 2, + "legendFormat": "a", + "refId": "B", + "step": 120 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "sum(rate(container_cpu_system_seconds_total{name=~\".+\"}[1m]))", + "format": "time_series", + "hide": true, + "interval": "", + "intervalFactor": 2, + "legendFormat": "nur container", + "refId": "F", + "step": 10 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "sum(rate(container_cpu_system_seconds_total{id=\"/\"}[1m]))", + "format": "time_series", + "hide": true, + "interval": "", + "intervalFactor": 2, + "legendFormat": "nur docker host", + "metric": "", + "refId": "A", + "step": 20 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "sum(rate(process_cpu_seconds_total[$interval])) * 100", + "format": "time_series", + "hide": true, + "interval": "", + "intervalFactor": 2, + "legendFormat": "host", + "metric": "", + "refId": "C", + "step": 600 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "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, + "intervalFactor": 2, + "legendFormat": "", + "refId": "D", + "step": 120 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "100 - (avg by (instance) (rate(node_cpu_seconds_total{mode=\"idle\",job=\"$job\"}[$interval])) * 100)", + "format": "time_series", + "hide": false, + "interval": "", + "intervalFactor": 2, + "legendFormat": "CPU", + "refId": "E" + } + ], + "title": "CPU Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-RdYlGr" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(50, 172, 45, 0.97)", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 50 + }, + { + "color": "rgba(245, 54, 54, 0.9)", + "value": 60 + } + ] + }, + "unit": "celsius" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 4 + }, + "id": 45, + "links": [], + "maxDataPoints": 100, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.1.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "node_thermal_zone_temp{type=\"x86_pkg_temp\"}", + "format": "time_series", + "hide": false, + "interval": "", + "intervalFactor": 2, + "legendFormat": "Temp", + "range": true, + "refId": "A", + "step": 1800 + } + ], + "title": "Temperature", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -781,7 +1139,7 @@ "h": 6, "w": 12, "x": 0, - "y": 4 + "y": 10 }, "id": 8, "links": [], @@ -802,7 +1160,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "sum(rate(container_network_receive_bytes_total{instance=~\"$node\",name=~\".+\"}[$interval])) by (name)", @@ -817,7 +1175,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "- rate(container_network_transmit_bytes_total{instance=~\"$node\",name=~\".+\"}[$interval])", @@ -836,7 +1194,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -895,7 +1253,7 @@ "h": 6, "w": 12, "x": 12, - "y": 4 + "y": 10 }, "id": 9, "links": [], @@ -916,7 +1274,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "sum(rate(container_network_transmit_bytes_total{instance=~\"$node\",name=~\".+\"}[$interval])) by (name)", @@ -930,7 +1288,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "rate(container_network_transmit_bytes_total{instance=~\"$node\",id=\"/\"}[$interval])", @@ -949,7 +1307,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -1011,7 +1369,7 @@ "h": 6, "w": 12, "x": 0, - "y": 10 + "y": 16 }, "id": 49, "options": { @@ -1031,7 +1389,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "sum without (dc,from,id,csv) (irate(container_fs_writes_bytes_total{image!=\"\",device!~\"/dev/dm.*\"}[$interval]))", @@ -1047,7 +1405,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -1109,7 +1467,7 @@ "h": 6, "w": 12, "x": 12, - "y": 10 + "y": 16 }, "id": 50, "options": { @@ -1129,7 +1487,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "sum without (dc,from,id,csv) (irate(container_fs_reads_bytes_total{image!=\"\",device!~\"/dev/dm.*\"}[$interval]))", @@ -1145,7 +1503,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "description": "Disk space used", "fieldConfig": { @@ -1203,7 +1561,7 @@ "h": 7, "w": 6, "x": 0, - "y": 16 + "y": 22 }, "id": 13, "links": [], @@ -1224,7 +1582,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "node_filesystem_size_bytes{fstype=\"ext4\",mountpoint=\"/etc/resolv.conf\"} - node_filesystem_free_bytes{fstype=\"ext4\",mountpoint=\"/etc/resolv.conf\"}", @@ -1239,7 +1597,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "100 - ((node_filesystem_avail_bytes{fstype=\"ext4\",mountpoint=\"/etc/resolv.conf\"} * 100) / node_filesystem_size_bytes{fstype=\"ext4\",mountpoint=\"/etc/resolv.conf\"})", @@ -1256,7 +1614,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1342,7 +1700,7 @@ "h": 7, "w": 6, "x": 6, - "y": 16 + "y": 22 }, "id": 20, "links": [], @@ -1363,7 +1721,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes", @@ -1379,7 +1737,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "description": "The number (after merges) of I/O requests completed per second for the device", "fieldConfig": { @@ -1756,7 +2114,7 @@ "h": 7, "w": 6, "x": 12, - "y": 16 + "y": 22 }, "id": 60, "links": [], @@ -1782,7 +2140,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "irate(node_disk_read_bytes_total[1m])", @@ -1796,7 +2154,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "- irate(node_disk_written_bytes_total[1m])", @@ -1809,7 +2167,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "irate(node_disk_io_time_seconds_total[1m])", @@ -1825,7 +2183,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1896,7 +2254,7 @@ "h": 7, "w": 6, "x": 18, - "y": 16 + "y": 22 }, "id": 19, "links": [], @@ -1917,7 +2275,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "sum(rate(container_network_receive_bytes_total{instance=~\"$node\",id=\"/\"}[$interval])) by (id)", @@ -1932,7 +2290,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "- sum(rate(container_network_transmit_bytes_total{instance=~\"$node\",id=\"/\"}[$interval])) by (id)", @@ -1951,7 +2309,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1959,194 +2317,6 @@ "mode": "palette-classic" }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "smooth", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percent" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "{id=\"/\",instance=\"cadvisor:8080\",job=\"prometheus\"}" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#BA43A9", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 23 - }, - "id": 5, - "links": [], - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.1.5", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "HIGc6PSVk" - }, - "exemplar": true, - "expr": "sum(rate(container_cpu_system_seconds_total[$interval]))", - "format": "time_series", - "hide": true, - "interval": "", - "intervalFactor": 2, - "legendFormat": "a", - "refId": "B", - "step": 120 - }, - { - "datasource": { - "type": "prometheus", - "uid": "HIGc6PSVk" - }, - "expr": "sum(rate(container_cpu_system_seconds_total{name=~\".+\"}[1m]))", - "format": "time_series", - "hide": true, - "interval": "", - "intervalFactor": 2, - "legendFormat": "nur container", - "refId": "F", - "step": 10 - }, - { - "datasource": { - "type": "prometheus", - "uid": "HIGc6PSVk" - }, - "expr": "sum(rate(container_cpu_system_seconds_total{id=\"/\"}[1m]))", - "format": "time_series", - "hide": true, - "interval": "", - "intervalFactor": 2, - "legendFormat": "nur docker host", - "metric": "", - "refId": "A", - "step": 20 - }, - { - "datasource": { - "type": "prometheus", - "uid": "HIGc6PSVk" - }, - "expr": "sum(rate(process_cpu_seconds_total[$interval])) * 100", - "format": "time_series", - "hide": true, - "interval": "", - "intervalFactor": 2, - "legendFormat": "host", - "metric": "", - "refId": "C", - "step": 600 - }, - { - "datasource": { - "type": "prometheus", - "uid": "HIGc6PSVk" - }, - "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, - "intervalFactor": 2, - "legendFormat": "", - "refId": "D", - "step": 120 - }, - { - "datasource": { - "type": "prometheus", - "uid": "HIGc6PSVk" - }, - "exemplar": true, - "expr": "100 - (avg by (instance) (rate(node_cpu_seconds_total{mode=\"idle\",job=\"$job\"}[$interval])) * 100)", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 2, - "legendFormat": "CPU", - "refId": "E" - } - ], - "title": "CPU Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "HIGc6PSVk" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -2179,8 +2349,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2195,8 +2364,8 @@ "gridPos": { "h": 7, "w": 12, - "x": 12, - "y": 23 + "x": 0, + "y": 29 }, "id": 1, "links": [], @@ -2217,7 +2386,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": true, "expr": "sum(rate(container_cpu_usage_seconds_total{name=~\".+\"}[$__range])) by (name) * 100", @@ -2237,7 +2406,115 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 30, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 29 + }, + "id": 10, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.1.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "sum(container_memory_rss{name!=\"\"}) by (name)", + "format": "time_series", + "hide": false, + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{name}}", + "refId": "A", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "container_memory_usage_bytes{name=~\".+\"}", + "format": "time_series", + "hide": true, + "intervalFactor": 2, + "legendFormat": "{{name}}", + "refId": "B", + "step": 240 + } + ], + "title": "RSS Memory Usage per Container", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -2245,8 +2522,6 @@ "mode": "palette-classic" }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -2296,7 +2571,7 @@ "h": 8, "w": 12, "x": 0, - "y": 29 + "y": 36 }, "id": 38, "links": [], @@ -2317,7 +2592,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "expr": "container_memory_usage_bytes{name!=\"\"}", "format": "time_series", @@ -2331,7 +2606,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "expr": "container_spec_memory_limit_bytes{name!=\"\"}", "format": "time_series", @@ -2348,277 +2623,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 30 - }, - "id": 10, - "links": [], - "options": { - "legend": { - "calcs": [], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.1.5", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "HIGc6PSVk" - }, - "expr": "sum(container_memory_rss{name!=\"\"}) by (name)", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{name}}", - "refId": "A", - "step": 240 - }, - { - "datasource": { - "type": "prometheus", - "uid": "HIGc6PSVk" - }, - "expr": "container_memory_usage_bytes{name=~\".+\"}", - "format": "time_series", - "hide": true, - "intervalFactor": 2, - "legendFormat": "{{name}}", - "refId": "B", - "step": 240 - } - ], - "title": "RSS Memory Usage per Container", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "HIGc6PSVk" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "fixed" - }, - "custom": { - "align": "auto", - "displayMode": "auto", - "filterable": false, - "inspect": false - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 37 - }, - "hideTimeOverride": false, - "id": 62, - "links": [], - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "9.2.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "HIGc6PSVk" - }, - "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": "HIGc6PSVk" - }, - "exemplar": true, - "expr": "prometheus_build_info{}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Prometheus Version: {{version}}", - "refId": "B", - "step": 2 - }, - { - "datasource": { - "type": "prometheus", - "uid": "HIGc6PSVk" - }, - "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": "HIGc6PSVk" - }, - "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": "HIGc6PSVk" - }, - "exemplar": true, - "expr": "cadvisor_version_info{instance=~\"$node\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Host OS Version: {{osVersion}}", - "refId": "E", - "step": 2 - }, - { - "datasource": { - "type": "prometheus", - "uid": "HIGc6PSVk" - }, - "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" - }, - { - "datasource": { - "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -2758,7 +2763,7 @@ "h": 8, "w": 12, "x": 12, - "y": 37 + "y": 36 }, "id": 42, "links": [], @@ -2772,12 +2777,12 @@ }, "showHeader": true }, - "pluginVersion": "9.2.0", + "pluginVersion": "9.1.0-69790pre", "targets": [ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": false, "expr": "max(container_memory_usage_bytes{name!=\"\"}) by (name)", @@ -2792,7 +2797,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": false, "expr": "max(container_memory_max_usage_bytes{name!=\"\"}-container_memory_usage_bytes{name!=\"\"})by (name)", @@ -2806,7 +2811,7 @@ { "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "exemplar": false, "expr": "max(container_memory_max_usage_bytes{name!=\"\"}) by (name)", @@ -2838,12 +2843,176 @@ } ], "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "fixed" + }, + "custom": { + "align": "auto", + "displayMode": "auto", + "filterable": false, + "inspect": false + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "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": "9.1.0-69790pre", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "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": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "prometheus_build_info{}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "Prometheus Version: {{version}}", + "refId": "B", + "step": 2 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "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": "${DS_PROMETHEUS}" + }, + "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": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "cadvisor_version_info{instance=~\"$node\"}", + "interval": "", + "intervalFactor": 1, + "legendFormat": "Host OS Version: {{osVersion}}", + "refId": "E", + "step": 2 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "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": "5m", "schemaVersion": 37, "style": "dark", - "tags": [], + "tags": [ + "prometheus", + "cAdvisor", + "node-exporter" + ], "templating": { "list": [ { @@ -2947,14 +3116,10 @@ "type": "interval" }, { - "current": { - "selected": false, - "text": "prometheus", - "value": "prometheus" - }, + "current": {}, "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "definition": "label_values(container_cpu_user_seconds_total, job)", "hide": 0, @@ -2974,14 +3139,10 @@ "type": "query" }, { - "current": { - "selected": false, - "text": "cadvisor:8080", - "value": "cadvisor:8080" - }, + "current": {}, "datasource": { "type": "prometheus", - "uid": "HIGc6PSVk" + "uid": "${DS_PROMETHEUS}" }, "definition": "label_values(container_cpu_user_seconds_total{job=~\"$job\"}, instance)", "hide": 0, @@ -3032,8 +3193,8 @@ ] }, "timezone": "browser", - "title": "Docker and OS Metrics for Pi-Hosted", - "uid": "amdrpidashboard", - "version": 1, + "title": "Docker and OS Metrics for x86_64", + "uid": "Ss3q6hSZkw", + "version": 3, "weekStart": "" }