Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dashboard showing metrics from nodes outside of kubernetes cluster #36

Merged
merged 1 commit into from
Jan 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions dashboards/k8s-views-global.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "avg(1-rate(node_cpu_seconds_total{mode=\"idle\"}[$__rate_interval]))",
"expr": "avg(1-rate(node_cpu_seconds_total{mode=\"idle\", job=\"node-exporter\"}[$__rate_interval]))",
"interval": "",
"legendFormat": "Real",
"range": true,
Expand Down Expand Up @@ -244,7 +244,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) / sum(node_memory_MemTotal_bytes)",
"expr": "sum(node_memory_MemTotal_bytes{job=\"node-exporter\"} - node_memory_MemAvailable_bytes{job=\"node-exporter\"}) / sum(node_memory_MemTotal_bytes{job=\"node-exporter\"})",
"interval": "",
"legendFormat": "Real",
"range": true,
Expand Down Expand Up @@ -690,7 +690,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(1-rate(node_cpu_seconds_total{mode=\"idle\"}[$__rate_interval]))",
"expr": "sum(1-rate(node_cpu_seconds_total{mode=\"idle\", job=\"node-exporter\"}[$__rate_interval]))",
"interval": "",
"legendFormat": "Real",
"range": true,
Expand Down Expand Up @@ -789,7 +789,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes)",
"expr": "sum(node_memory_MemTotal_bytes{job=\"node-exporter\"} - node_memory_MemAvailable_bytes{job=\"node-exporter\"})",
"interval": "",
"legendFormat": "Real",
"range": true,
Expand Down Expand Up @@ -1005,7 +1005,7 @@
"uid": "${datasource}"
},
"exemplar": true,
"expr": "avg(1-rate(node_cpu_seconds_total{mode=\"idle\"}[$__rate_interval]))",
"expr": "avg(1-rate(node_cpu_seconds_total{mode=\"idle\", job=\"node-exporter\"}[$__rate_interval]))",
"interval": "$resolution",
"legendFormat": "CPU usage in %",
"refId": "A"
Expand Down Expand Up @@ -1109,7 +1109,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) / sum(node_memory_MemTotal_bytes)",
"expr": "sum(node_memory_MemTotal_bytes{job=\"node-exporter\"} - node_memory_MemAvailable_bytes{job=\"node-exporter\"}) / sum(node_memory_MemTotal_bytes{job=\"node-exporter\"})",
"interval": "$resolution",
"legendFormat": "Memory usage in %",
"range": true,
Expand Down Expand Up @@ -1415,7 +1415,7 @@
"uid": "${datasource}"
},
"exemplar": true,
"expr": "avg(1-rate(node_cpu_seconds_total{mode=\"idle\"}[$__rate_interval])) by (instance)",
"expr": "avg(1-rate(node_cpu_seconds_total{mode=\"idle\", job=\"node-exporter\"}[$__rate_interval])) by (instance)",
"interval": "$resolution",
"legendFormat": "{{ node }}",
"refId": "A"
Expand Down Expand Up @@ -1516,7 +1516,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) by (instance)",
"expr": "sum(node_memory_MemTotal_bytes{job=\"node-exporter\"} - node_memory_MemAvailable_bytes{job=\"node-exporter\"}) by (instance)",
"interval": "$resolution",
"legendFormat": "{{ node}}",
"range": true,
Expand Down Expand Up @@ -1629,7 +1629,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(rate(node_network_receive_bytes_total[$__rate_interval]))",
"expr": "sum(rate(node_network_receive_bytes_total{job=\"node-exporter\"}[$__rate_interval]))",
"interval": "$resolution",
"legendFormat": "Total received bytes",
"range": true,
Expand All @@ -1642,7 +1642,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "- sum(rate(node_network_transmit_bytes_total[$__rate_interval]))",
"expr": "- sum(rate(node_network_transmit_bytes_total{job=\"node-exporter\"}[$__rate_interval]))",
"interval": "$resolution",
"legendFormat": "Total transmitted bytes",
"range": true,
Expand Down Expand Up @@ -1738,7 +1738,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(rate(node_network_receive_drop_total[$__rate_interval]))",
"expr": "sum(rate(node_network_receive_drop_total{job=\"node-exporter\"}[$__rate_interval]))",
"interval": "$resolution",
"legendFormat": "Packets dropped (receive)",
"range": true,
Expand All @@ -1751,7 +1751,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "- sum(rate(node_network_transmit_drop_total[$__rate_interval]))",
"expr": "- sum(rate(node_network_transmit_drop_total{job=\"node-exporter\"}[$__rate_interval]))",
"interval": "$resolution",
"legendFormat": "Packets dropped (transmit)",
"range": true,
Expand Down Expand Up @@ -1956,7 +1956,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(rate(node_network_receive_bytes_total[$__rate_interval])) by (instance)",
"expr": "sum(rate(node_network_receive_bytes_total{job=\"node-exporter\"}[$__rate_interval])) by (instance)",
"interval": "$resolution",
"legendFormat": "Received bytes in {{ instance }}",
"range": true,
Expand All @@ -1968,7 +1968,7 @@
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "- sum(rate(node_network_transmit_bytes_total[$__rate_interval])) by (instance)",
"expr": "- sum(rate(node_network_transmit_bytes_total{job=\"node-exporter\"}[$__rate_interval])) by (instance)",
"hide": false,
"interval": "$resolution",
"legendFormat": "Transmitted bytes in {{ instance }}",
Expand Down