From 76c30a85dd6eb4e7fde74ec31fd10cbbec220a0f Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 29 Jul 2023 02:04:23 +0200 Subject: prometheus/standalone-kubelet: simply config and scrape all sub-jobs on all hosts --- .../files/dashboard-standalone-kubelet-overview.json | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'roles/monitoring/grafana') diff --git a/roles/monitoring/grafana/files/dashboard-standalone-kubelet-overview.json b/roles/monitoring/grafana/files/dashboard-standalone-kubelet-overview.json index 50003a81..5ff9a338 100644 --- a/roles/monitoring/grafana/files/dashboard-standalone-kubelet-overview.json +++ b/roles/monitoring/grafana/files/dashboard-standalone-kubelet-overview.json @@ -624,7 +624,7 @@ "hide": false, "interval": "15s", "intervalFactor": 1, - "legendFormat": "{{ pod }}", + "legendFormat": "{{ instance }}", "metric": "container_cpu", "range": true, "refId": "A", @@ -727,7 +727,7 @@ "hide": false, "interval": "15s", "intervalFactor": 1, - "legendFormat": "{{ pod }}", + "legendFormat": "{{ instance }}", "metric": "container_cpu", "range": true, "refId": "A", @@ -1576,6 +1576,10 @@ }, { "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "definition": "label_values(pod_cpu_usage_seconds_total{instance=~\"$instance\"},pod)", "hide": 0, "includeAll": true, @@ -1594,6 +1598,10 @@ }, { "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "definition": "label_values(container_cpu_usage_seconds_total{instance=~\"$instance\", pod=~\"$pod\"},container)", "hide": 0, "includeAll": true, @@ -1644,6 +1652,6 @@ "timezone": "", "title": "Standalone Kubelet Overview", "uid": "3138fa155d5915769fbded898ac09fd9", - "version": 3, + "version": 4, "weekStart": "" -} \ No newline at end of file +} -- cgit v1.2.3