Skip to content

Commit 3bb85a2

Browse files
authored
Merge pull request #1704 from sharadregoti/patch-1
Fix CPU Request and Limits Prometheus Metrics in dashboard.json, was uncovered while putting together this article: https://chronosphere.io/learn/exploring-the-fluent-bit-grafana-dashboard
2 parents 79b59cc + 1236dbf commit 3bb85a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monitoring/dashboard.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@
542542
"tableColumn": "",
543543
"targets": [
544544
{
545-
"expr": "sum(kube_pod_container_resource_requests_cpu_cores) / sum(kube_node_status_allocatable_cpu_cores)",
545+
"expr": "sum(kube_pod_container_resource_requests{unit=\"core\",resource=\"cpu\"}) / sum(kube_node_status_allocatable{unit=\"core\",resource=\"cpu\"})",
546546
"instant": false,
547547
"refId": "A"
548548
}
@@ -712,7 +712,7 @@
712712
"tableColumn": "",
713713
"targets": [
714714
{
715-
"expr": "sum(kube_pod_container_resource_limits_cpu_cores) / sum(kube_node_status_allocatable_cpu_cores)",
715+
"expr": "sum(kube_pod_container_resource_limits{unit=\"core\",resource=\"cpu\"}) / sum(kube_node_status_allocatable{unit=\"core\",resource=\"cpu\"})",
716716
"instant": false,
717717
"refId": "A"
718718
}

0 commit comments

Comments
 (0)