Skip to content

Commit

Permalink
feat: switched to node_exporter metrics for kube-prometheus-stack 37+ (
Browse files Browse the repository at this point in the history
…#19)

Signed-off-by: David <davidcalvertfr@gmail.com>
  • Loading branch information
dotdc authored Jul 19, 2022
1 parent 2e538b0 commit 132a296
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions dashboards/k8s-views-global.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(container_memory_working_set_bytes{id=\"/\"}) / sum(machine_memory_bytes)",
"expr": "sum(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) / sum(node_memory_MemTotal_bytes)",
"interval": "",
"legendFormat": "Real",
"range": true,
Expand Down Expand Up @@ -785,7 +785,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(container_memory_working_set_bytes{id=\"/\"})",
"expr": "sum(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes)",
"interval": "",
"legendFormat": "Real",
"range": true,
Expand Down Expand Up @@ -1099,7 +1099,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(container_memory_working_set_bytes{id=\"/\"}) / sum(machine_memory_bytes)",
"expr": "sum(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) / sum(node_memory_MemTotal_bytes)",
"interval": "$resolution",
"legendFormat": "Memory usage in %",
"range": true,
Expand Down Expand Up @@ -1396,7 +1396,7 @@
"uid": "${datasource}"
},
"exemplar": true,
"expr": "avg by (node) (1-rate(node_cpu_seconds_total{mode=\"idle\"}[$__rate_interval]))",
"expr": "avg(1-rate(node_cpu_seconds_total{mode=\"idle\"}[$__rate_interval])) by (instance)",
"interval": "$resolution",
"legendFormat": "{{ node }}",
"refId": "A"
Expand Down
4 changes: 2 additions & 2 deletions dashboards/k8s-views-nodes.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
"uid": "${datasource}"
},
"exemplar": false,
"expr": "sum(container_memory_working_set_bytes{id=\"/\", node=\"$node\"}) / sum(machine_memory_bytes{node=\"$node\"})",
"expr": "sum(node_memory_MemTotal_bytes{instance=\"$instance\"} - node_memory_MemAvailable_bytes{instance=\"$instance\"}) / sum(node_memory_MemTotal_bytes{instance=\"$instance\"})",
"instant": true,
"interval": "$resolution",
"legendFormat": "",
Expand Down Expand Up @@ -682,7 +682,7 @@
"uid": "${datasource}"
},
"exemplar": false,
"expr": "sum(container_memory_working_set_bytes{id=\"/\", node=\"$node\"})",
"expr": "sum(node_memory_MemTotal_bytes{instance=\"$instance\"} - node_memory_MemAvailable_bytes{instance=\"$instance\"})",
"instant": true,
"interval": "",
"legendFormat": "",
Expand Down

0 comments on commit 132a296

Please sign in to comment.