From fae1c3cd9d2134bada93bd07d8b2b9534d721e9d Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 5 Jan 2025 21:43:59 -0600 Subject: [PATCH] update layout --- dashboards/service/alertmanager.json | 951 +++++++++++++++++++++++---- 1 file changed, 812 insertions(+), 139 deletions(-) diff --git a/dashboards/service/alertmanager.json b/dashboards/service/alertmanager.json index 6166ea9..d6ae749 100644 --- a/dashboards/service/alertmanager.json +++ b/dashboards/service/alertmanager.json @@ -57,7 +57,7 @@ "fieldConfig": { "defaults": { "color": { - "fixedColor": "#f4d598", + "fixedColor": "text", "mode": "fixed" }, "decimals": 0, @@ -98,8 +98,8 @@ "id": 4, "maxDataPoints": 100, "options": { - "colorMode": "none", - "graphMode": "area", + "colorMode": "value", + "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", @@ -128,6 +128,86 @@ "title": "Number of instances", "type": "stat" }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "Number of peers in the Alertmanager cluster.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 3, + "y": 1 + }, + "id": 207, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["mean"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "max(alertmanager_cluster_members{instance=~\"$instance\"})", + "format": "time_series", + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Cluster size", + "type": "stat" + }, { "datasource": { "type": "prometheus", @@ -319,7 +399,7 @@ "gridPos": { "h": 5, "w": 9, - "x": 3, + "x": 6, "y": 1 }, "id": 26, @@ -372,86 +452,6 @@ "title": "Instance versions and up time", "type": "table" }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "description": "Number of peers in the Alertmanager cluster.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "#e5ac0e", - "mode": "fixed" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 12, - "y": 1 - }, - "id": 207, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["mean"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "expr": "max(alertmanager_cluster_members{instance=~\"$instance\"})", - "format": "time_series", - "intervalFactor": 1, - "refId": "A" - } - ], - "title": "Cluster size", - "type": "stat" - }, { "datasource": { "type": "prometheus", @@ -461,7 +461,7 @@ "fieldConfig": { "defaults": { "color": { - "fixedColor": "#bf1b00", + "fixedColor": "red", "mode": "fixed" }, "mappings": [ @@ -481,10 +481,6 @@ { "color": "green", "value": null - }, - { - "color": "red", - "value": 80 } ] }, @@ -501,8 +497,8 @@ "id": 2, "maxDataPoints": 100, "options": { - "colorMode": "none", - "graphMode": "area", + "colorMode": "value", + "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", @@ -540,7 +536,7 @@ "fieldConfig": { "defaults": { "color": { - "fixedColor": "#f9e2d2", + "fixedColor": "text", "mode": "fixed" }, "mappings": [ @@ -580,8 +576,8 @@ "id": 3, "maxDataPoints": 100, "options": { - "colorMode": "none", - "graphMode": "area", + "colorMode": "value", + "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", @@ -619,7 +615,7 @@ "fieldConfig": { "defaults": { "color": { - "fixedColor": "#f9e2d2", + "fixedColor": "text", "mode": "fixed" }, "mappings": [ @@ -659,8 +655,8 @@ "id": 121, "maxDataPoints": 100, "options": { - "colorMode": "none", - "graphMode": "area", + "colorMode": "value", + "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", @@ -709,7 +705,55 @@ }, "description": "Number of sent notifications to distinct integrations such as PagerDuty, Slack and so on. On negative axis are displayed failed notifications.", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, "overrides": [ { "matcher": { @@ -791,6 +835,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "repeat": "instance", "repeatDirection": "h", "targets": [ @@ -829,7 +874,59 @@ }, "description": "Duration of notification sends in 0.99 and 0.9 quantiles per integration.", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "points", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 10, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, "overrides": [ { "matcher": { @@ -916,6 +1013,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "repeat": "instance", "repeatDirection": "h", "targets": [ @@ -966,7 +1064,59 @@ }, "description": "Number of alerts by state such as `active`, `suppressed` etc.", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, "overrides": [ { "matcher": { @@ -1019,6 +1169,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "repeat": "instance", "repeatDirection": "h", "targets": [ @@ -1044,7 +1195,58 @@ }, "description": "Number of received alerts from Prometheus by status `firing` on positive axis and `resolved` on negative axis.", "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "line" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 0 + } + ] + } + }, "overrides": [ { "matcher": { @@ -1101,6 +1303,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0", "repeat": "instance", "repeatDirection": "h", "targets": [ @@ -1109,11 +1312,13 @@ "type": "prometheus", "uid": "prometheus" }, + "editorMode": "code", "expr": "sum(increase(alertmanager_alerts_received_total{instance=~\"$instance\"}[$__interval])) by (status)", "format": "time_series", - "interval": "", + "interval": "5m", "intervalFactor": 1, "legendFormat": "{{ status }}", + "range": true, "refId": "A" } ], @@ -1180,7 +1385,7 @@ "h": 4, "w": 24, "x": 0, - "y": 122 + "y": 34 }, "id": 38, "options": {}, @@ -1227,7 +1432,7 @@ "h": 6, "w": 24, "x": 0, - "y": 126 + "y": 38 }, "id": 75, "options": {}, @@ -1274,7 +1479,7 @@ "h": 6, "w": 24, "x": 0, - "y": 132 + "y": 44 }, "id": 68, "options": {}, @@ -1321,7 +1526,7 @@ "h": 6, "w": 24, "x": 0, - "y": 138 + "y": 50 }, "id": 48, "options": {}, @@ -1368,7 +1573,7 @@ "h": 6, "w": 24, "x": 0, - "y": 144 + "y": 56 }, "id": 53, "options": {}, @@ -1415,7 +1620,7 @@ "h": 6, "w": 24, "x": 0, - "y": 150 + "y": 62 }, "id": 62, "options": {}, @@ -1475,7 +1680,7 @@ "h": 6, "w": 24, "x": 0, - "y": 10 + "y": 487 }, "id": 314, "options": {}, @@ -1533,7 +1738,7 @@ "h": 6, "w": 24, "x": 0, - "y": 16 + "y": 493 }, "id": 307, "options": {}, @@ -1569,7 +1774,7 @@ "h": 6, "w": 24, "x": 0, - "y": 22 + "y": 499 }, "id": 303, "options": {}, @@ -1623,17 +1828,81 @@ "uid": "prometheus" }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, "overrides": [] }, "gridPos": { "h": 6, "w": 24, "x": 0, - "y": 11 + "y": 506 }, "id": 94, - "options": {}, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", "repeat": "instance", "repeatDirection": "h", "targets": [ @@ -1642,10 +1911,13 @@ "type": "prometheus", "uid": "prometheus" }, + "editorMode": "code", "expr": "increase(alertmanager_nflog_queries_total{instance=~\"$instance\"}[$__interval])", "format": "time_series", + "interval": "5m", "intervalFactor": 1, "legendFormat": "Nf log query count", + "range": true, "refId": "A" }, { @@ -1653,10 +1925,13 @@ "type": "prometheus", "uid": "prometheus" }, + "editorMode": "code", "expr": "increase(alertmanager_nflog_query_errors_total{instance=~\"$instance\"}[$__interval])", "format": "time_series", + "interval": "5m", "intervalFactor": 1, "legendFormat": "Nf log query errors", + "range": true, "refId": "B" } ], @@ -1669,17 +1944,81 @@ "uid": "prometheus" }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "points", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 10, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, "overrides": [] }, "gridPos": { "h": 6, "w": 24, "x": 0, - "y": 17 + "y": 512 }, "id": 106, - "options": {}, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", "repeat": "instance", "repeatDirection": "h", "targets": [ @@ -1704,17 +2043,81 @@ "uid": "prometheus" }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, "overrides": [] }, "gridPos": { "h": 6, "w": 24, "x": 0, - "y": 23 + "y": 518 }, "id": 97, - "options": {}, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", "repeat": "instance", "repeatDirection": "h", "targets": [ @@ -1746,7 +2149,7 @@ "h": 6, "w": 24, "x": 0, - "y": 29 + "y": 524 }, "id": 101, "options": {}, @@ -1782,7 +2185,7 @@ "h": 6, "w": 24, "x": 0, - "y": 161 + "y": 530 }, "id": 92, "options": {}, @@ -1831,7 +2234,7 @@ "h": 6, "w": 24, "x": 0, - "y": 33 + "y": 741 }, "id": 129, "options": {}, @@ -1860,17 +2263,81 @@ "uid": "prometheus" }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, "overrides": [] }, "gridPos": { "h": 6, "w": 24, "x": 0, - "y": 53 + "y": 747 }, "id": 134, - "options": {}, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", "repeat": "instance", "repeatDirection": "h", "targets": [ @@ -1879,11 +2346,14 @@ "type": "prometheus", "uid": "prometheus" }, + "editorMode": "code", "expr": "increase(alertmanager_silences_queries_total{instance=~\"$instance\"}[$__interval])", "format": "time_series", "hide": false, + "interval": "5m", "intervalFactor": 1, "legendFormat": "Silecnces query count", + "range": true, "refId": "A" }, { @@ -1891,10 +2361,13 @@ "type": "prometheus", "uid": "prometheus" }, + "editorMode": "code", "expr": "increase(alertmanager_silences_query_errors_total{instance=~\"$instance\"}[$__interval])", "format": "time_series", + "interval": "5m", "intervalFactor": 1, "legendFormat": "Silecnces query fails", + "range": true, "refId": "B" } ], @@ -1907,17 +2380,81 @@ "uid": "prometheus" }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, "overrides": [] }, "gridPos": { "h": 6, "w": 24, "x": 0, - "y": 59 + "y": 753 }, "id": 138, - "options": {}, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", "repeat": "instance", "repeatDirection": "h", "targets": [ @@ -1950,7 +2487,7 @@ "h": 6, "w": 24, "x": 0, - "y": 65 + "y": 759 }, "id": 149, "options": {}, @@ -1986,7 +2523,7 @@ "h": 6, "w": 24, "x": 0, - "y": 71 + "y": 765 }, "id": 143, "options": {}, @@ -2022,7 +2559,7 @@ "h": 6, "w": 24, "x": 0, - "y": 77 + "y": 771 }, "id": 131, "options": {}, @@ -2065,17 +2602,83 @@ "uid": "prometheus" }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 4, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 0.1 + } + ] + }, + "unit": "ms" + }, "overrides": [] }, "gridPos": { "h": 7, "w": 24, "x": 0, - "y": 34 + "y": 806 }, "id": 175, - "options": {}, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", "repeat": "instance", "repeatDirection": "h", "targets": [ @@ -2084,6 +2687,7 @@ "type": "prometheus", "uid": "prometheus" }, + "editorMode": "code", "expr": "rate(process_cpu_seconds_total{instance=~\"$instance\"}[$__interval])", "format": "time_series", "groupBy": [ @@ -2096,11 +2700,12 @@ "type": "fill" } ], - "interval": "", + "interval": "5m", "intervalFactor": 1, "legendFormat": "{{instance}}", "orderByTime": "ASC", "policy": "default", + "range": true, "refId": "A", "resultFormat": "time_series", "select": [ @@ -2122,10 +2727,13 @@ "type": "prometheus", "uid": "prometheus" }, + "editorMode": "code", "expr": "max(kube_pod_container_resource_limits_cpu_cores{pod=~\"$instance\"}) by (pod)", "format": "time_series", + "interval": "5m", "intervalFactor": 1, "legendFormat": "Limit {{pod}}", + "range": true, "refId": "B" } ], @@ -2138,17 +2746,82 @@ "uid": "prometheus" }, "fieldConfig": { - "defaults": {}, + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, "overrides": [] }, "gridPos": { "h": 7, "w": 24, "x": 0, - "y": 41 + "y": 813 }, "id": 177, - "options": {}, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", "repeat": "instance", "repeatDirection": "h", "targets": [