Skip to content

Commit

Permalink
Fix node exporter metrics (after deployment restarts)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeveloper-wq committed Jun 24, 2024
1 parent 1a6227b commit 1c24a28
Showing 1 changed file with 22 additions and 40 deletions.
62 changes: 22 additions & 40 deletions provisioning/dashboards/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "(1 - avg by(instance) (rate(node_cpu_seconds_total{mode=\"idle\"}[10m]))) * 100\n * on(instance) group_left(node_id, node_name) node_meta\n",
"expr": "sum((1 - avg by(instance) (rate(node_cpu_seconds_total{mode=\"idle\"}[10m]))) * 100\n * on(instance) group_left(node_id, node_name) node_meta)by (node_id, node_name)\n",
"hide": false,
"instant": false,
"legendFormat": "{{node_name}}",
Expand Down Expand Up @@ -183,7 +183,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "(\n ((node_filesystem_avail_bytes{mountpoint=\"/\"} * on(instance) group_left(node_id, node_name) node_meta)) / 1000000000\n)",
"expr": "(\n (sum(node_filesystem_avail_bytes{mountpoint=\"/\"} * on(instance) group_left(node_id, node_name) node_meta)by (node_id, node_name)) / 1000000000\n)",
"format": "time_series",
"instant": false,
"legendFormat": "{{node_name}} {{mountpoint}}",
Expand Down Expand Up @@ -657,8 +657,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -789,8 +788,7 @@
"mode": "absolute",
"steps": [
{
"color": "blue",
"value": null
"color": "blue"
}
]
},
Expand Down Expand Up @@ -912,8 +910,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
Expand Down Expand Up @@ -987,8 +984,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
Expand Down Expand Up @@ -1048,8 +1044,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
Expand Down Expand Up @@ -1115,8 +1110,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1312,8 +1306,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
Expand Down Expand Up @@ -1376,8 +1369,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1444,8 +1436,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1518,8 +1509,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
Expand Down Expand Up @@ -1731,8 +1721,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
Expand Down Expand Up @@ -1807,8 +1796,7 @@
"mode": "absolute",
"steps": [
{
"color": "orange",
"value": null
"color": "orange"
}
]
},
Expand Down Expand Up @@ -1899,8 +1887,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
Expand Down Expand Up @@ -1964,8 +1951,7 @@
"mode": "absolute",
"steps": [
{
"color": "orange",
"value": null
"color": "orange"
}
]
},
Expand Down Expand Up @@ -2041,8 +2027,7 @@
"mode": "absolute",
"steps": [
{
"color": "orange",
"value": null
"color": "orange"
}
]
},
Expand Down Expand Up @@ -2122,8 +2107,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
Expand Down Expand Up @@ -2202,8 +2186,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
Expand Down Expand Up @@ -2326,8 +2309,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2502,14 +2484,14 @@
"list": []
},
"time": {
"from": "now-1h",
"from": "now-30m",
"to": "now"
},
"timeRangeUpdatedDuringEditOrView": false,
"timepicker": {},
"timezone": "",
"title": "Priobike",
"uid": "sdmbOcJnz",
"version": 3,
"version": 5,
"weekStart": ""
}

0 comments on commit 1c24a28

Please sign in to comment.