update pannels

This commit is contained in:
2025-05-15 23:57:11 -05:00
parent 4c76ae99ee
commit 2b07603219

View File

@@ -80,7 +80,9 @@
"orientation": "horizontal", "orientation": "horizontal",
"percentChangeColorMode": "standard", "percentChangeColorMode": "standard",
"reduceOptions": { "reduceOptions": {
"calcs": ["min"], "calcs": [
"min"
],
"fields": "", "fields": "",
"values": false "values": false
}, },
@@ -109,7 +111,8 @@
}, },
{ {
"datasource": { "datasource": {
"uid": "$datasource" "type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@@ -175,7 +178,10 @@
{ {
"id": "custom.lineStyle", "id": "custom.lineStyle",
"value": { "value": {
"dash": [10, 10], "dash": [
10,
10
],
"fill": "dash" "fill": "dash"
} }
}, },
@@ -201,7 +207,10 @@
{ {
"id": "custom.lineStyle", "id": "custom.lineStyle",
"value": { "value": {
"dash": [10, 10], "dash": [
10,
10
],
"fill": "dash" "fill": "dash"
} }
}, },
@@ -259,7 +268,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "$datasource" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "sum(\r\n kube_pod_container_resource_requests{job=\"$kubeStateMetricsJob\", namespace=\"monitoring-system\", pod=~\"$pod\", resource=\"cpu\", $k8sClusterLabelKey=\"$cluster\"}\r\n)", "expr": "sum(\r\n kube_pod_container_resource_requests{job=\"$kubeStateMetricsJob\", namespace=\"monitoring-system\", pod=~\"$pod\", resource=\"cpu\", $k8sClusterLabelKey=\"$cluster\"}\r\n)",
@@ -272,7 +281,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "$datasource" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "sum(\r\n kube_pod_container_resource_limits{job=\"$kubeStateMetricsJob\", namespace=\"monitoring-system\", pod=~\"$pod\", resource=\"cpu\", $k8sClusterLabelKey=\"$cluster\"}\r\n)", "expr": "sum(\r\n kube_pod_container_resource_limits{job=\"$kubeStateMetricsJob\", namespace=\"monitoring-system\", pod=~\"$pod\", resource=\"cpu\", $k8sClusterLabelKey=\"$cluster\"}\r\n)",
@@ -288,7 +297,8 @@
}, },
{ {
"datasource": { "datasource": {
"uid": "$datasource" "type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@@ -353,7 +363,10 @@
{ {
"id": "custom.lineStyle", "id": "custom.lineStyle",
"value": { "value": {
"dash": [10, 10], "dash": [
10,
10
],
"fill": "dash" "fill": "dash"
} }
}, },
@@ -379,7 +392,10 @@
{ {
"id": "custom.lineStyle", "id": "custom.lineStyle",
"value": { "value": {
"dash": [10, 10], "dash": [
10,
10
],
"fill": "dash" "fill": "dash"
} }
}, },
@@ -437,7 +453,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "$datasource" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "sum(\r\n kube_pod_container_resource_requests{job=\"$kubeStateMetricsJob\", namespace=\"monitoring-system\", pod=~\"$pod\", resource=\"memory\", $k8sClusterLabelKey=\"$cluster\"}\r\n)", "expr": "sum(\r\n kube_pod_container_resource_requests{job=\"$kubeStateMetricsJob\", namespace=\"monitoring-system\", pod=~\"$pod\", resource=\"memory\", $k8sClusterLabelKey=\"$cluster\"}\r\n)",
@@ -450,7 +466,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "$datasource" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "sum(\r\n kube_pod_container_resource_limits{job=\"$kubeStateMetricsJob\", namespace=\"monitoring-system\", pod=~\"$pod\", resource=\"memory\", $k8sClusterLabelKey=\"$cluster\"}\r\n)", "expr": "sum(\r\n kube_pod_container_resource_limits{job=\"$kubeStateMetricsJob\", namespace=\"monitoring-system\", pod=~\"$pod\", resource=\"memory\", $k8sClusterLabelKey=\"$cluster\"}\r\n)",
@@ -466,7 +482,8 @@
}, },
{ {
"datasource": { "datasource": {
"uid": "$datasource" "type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@@ -614,7 +631,9 @@
"orientation": "auto", "orientation": "auto",
"percentChangeColorMode": "standard", "percentChangeColorMode": "standard",
"reduceOptions": { "reduceOptions": {
"calcs": ["lastNotNull"], "calcs": [
"lastNotNull"
],
"fields": "", "fields": "",
"values": false "values": false
}, },
@@ -779,7 +798,8 @@
}, },
{ {
"datasource": { "datasource": {
"uid": "$datasource" "type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@@ -846,7 +866,9 @@
"options": { "options": {
"dataLinks": [], "dataLinks": [],
"legend": { "legend": {
"calcs": ["lastNotNull"], "calcs": [
"lastNotNull"
],
"displayMode": "table", "displayMode": "table",
"placement": "right", "placement": "right",
"showLegend": true "showLegend": true
@@ -878,7 +900,8 @@
}, },
{ {
"datasource": { "datasource": {
"uid": "$datasource" "type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@@ -956,7 +979,8 @@
}, },
{ {
"datasource": { "datasource": {
"uid": "$datasource" "type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@@ -1023,7 +1047,9 @@
"options": { "options": {
"dataLinks": [], "dataLinks": [],
"legend": { "legend": {
"calcs": ["lastNotNull"], "calcs": [
"lastNotNull"
],
"displayMode": "table", "displayMode": "table",
"placement": "right", "placement": "right",
"showLegend": true "showLegend": true
@@ -1055,7 +1081,8 @@
}, },
{ {
"datasource": { "datasource": {
"uid": "$datasource" "type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@@ -1294,6 +1321,10 @@
"templating": { "templating": {
"list": [ "list": [
{ {
"current": {
"text": "Prometheus",
"value": "kube-prometheus-stack"
},
"includeAll": false, "includeAll": false,
"label": "Datasource", "label": "Datasource",
"name": "DS_PROMETHEUS", "name": "DS_PROMETHEUS",
@@ -1345,6 +1376,10 @@
"text": "", "text": "",
"value": "" "value": ""
}, },
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"definition": "label_values(up{job=\"apiserver\"},$k8sClusterLabelKey)", "definition": "label_values(up{job=\"apiserver\"},$k8sClusterLabelKey)",
"label": "K8s Cluster", "label": "K8s Cluster",
"name": "cluster", "name": "cluster",
@@ -1363,6 +1398,10 @@
"text": "grafana-operator-metrics-service", "text": "grafana-operator-metrics-service",
"value": "grafana-operator-metrics-service" "value": "grafana-operator-metrics-service"
}, },
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"definition": "label_values(grafana_operator_grafana_api_requests{$k8sClusterLabelKey=\"$cluster\"},job)", "definition": "label_values(grafana_operator_grafana_api_requests{$k8sClusterLabelKey=\"$cluster\"},job)",
"label": "Scrape Job", "label": "Scrape Job",
"name": "job", "name": "job",
@@ -1380,7 +1419,13 @@
"allValue": "grafana-operator-.*", "allValue": "grafana-operator-.*",
"current": { "current": {
"text": "All", "text": "All",
"value": ["$__all"] "value": [
"$__all"
]
},
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
}, },
"definition": "label_values(up{job=\"$job\", $k8sClusterLabelKey=\"$cluster\"},pod)", "definition": "label_values(up{job=\"$job\", $k8sClusterLabelKey=\"$cluster\"},pod)",
"includeAll": true, "includeAll": true,