Skip to content

Commit c610b4a

Browse files
author
Sunil Thaha
authored
Merge pull request #2131 from vprashar2929/chore-dash-node
chore: update dashboard to use active node cpu metric
2 parents 8695f2d + 0dc394c commit c610b4a

File tree

1 file changed

+37
-11
lines changed

1 file changed

+37
-11
lines changed

compose/dev/grafana/dashboards/dev/dashboard.json

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@
912912
"overrides": []
913913
},
914914
"gridPos": {
915-
"h": 10,
915+
"h": 12,
916916
"w": 24,
917917
"x": 0,
918918
"y": 31
@@ -945,10 +945,36 @@
945945
"exemplar": false,
946946
"expr": "rate(kepler_node_cpu_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s])",
947947
"instant": false,
948-
"legendFormat": "Kepler Reboot (${zone})",
948+
"legendFormat": "Kepler Reboot CPU Total (${zone})",
949949
"range": true,
950950
"refId": "A"
951951
},
952+
{
953+
"datasource": {
954+
"type": "prometheus",
955+
"uid": "PDE6745920139CE56"
956+
},
957+
"editorMode": "code",
958+
"expr": "rate(kepler_node_cpu_idle_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s])",
959+
"hide": false,
960+
"instant": false,
961+
"legendFormat": "Kepler Reboot CPU Idle (${zone})",
962+
"range": true,
963+
"refId": "B"
964+
},
965+
{
966+
"datasource": {
967+
"type": "prometheus",
968+
"uid": "PDE6745920139CE56"
969+
},
970+
"editorMode": "code",
971+
"expr": "rate(kepler_node_cpu_active_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s])",
972+
"hide": false,
973+
"instant": false,
974+
"legendFormat": "Kepler Reboot CPU Active (${zone})",
975+
"range": true,
976+
"refId": "C"
977+
},
952978
{
953979
"datasource": {
954980
"type": "prometheus",
@@ -960,7 +986,7 @@
960986
"instant": false,
961987
"legendFormat": "Node Exporter (${zone})",
962988
"range": true,
963-
"refId": "B"
989+
"refId": "D"
964990
},
965991
{
966992
"datasource": {
@@ -973,7 +999,7 @@
973999
"instant": false,
9741000
"legendFormat": "Kepler - OLD (${zone})",
9751001
"range": true,
976-
"refId": "C"
1002+
"refId": "E"
9771003
}
9781004
],
9791005
"title": "Node Energy Comparison (J/s)",
@@ -985,7 +1011,7 @@
9851011
"h": 1,
9861012
"w": 24,
9871013
"x": 0,
988-
"y": 41
1014+
"y": 43
9891015
},
9901016
"id": 102,
9911017
"panels": [],
@@ -1002,7 +1028,7 @@
10021028
"h": 6,
10031029
"w": 24,
10041030
"x": 0,
1005-
"y": 42
1031+
"y": 44
10061032
},
10071033
"id": 157,
10081034
"options": {
@@ -1120,7 +1146,7 @@
11201146
"uid": "PDE6745920139CE56"
11211147
},
11221148
"editorMode": "code",
1123-
"expr": "abs(\n sum(kepler_node_cpu_watts{job=\"${job}\", zone=\"${zone}\"}) \n - \n sum(kepler_process_cpu_watts{job=\"${job}\", zone=\"${zone}\"})\n)",
1149+
"expr": "abs(\n sum(kepler_node_cpu_active_watts{job=\"${job}\", zone=\"${zone}\"}) \n - \n sum(kepler_process_cpu_watts{job=\"${job}\", zone=\"${zone}\"})\n)",
11241150
"instant": false,
11251151
"legendFormat": "Kepler Reboot Attribution Gap - Watts",
11261152
"range": true,
@@ -1132,7 +1158,7 @@
11321158
"uid": "PDE6745920139CE56"
11331159
},
11341160
"editorMode": "code",
1135-
"expr": "abs(\n sum(rate(kepler_node_cpu_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s]))\n - \n sum(rate(kepler_process_cpu_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s]))\n)",
1161+
"expr": "abs(\n sum(rate(kepler_node_cpu_active_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s]))\n - \n sum(rate(kepler_process_cpu_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s]))\n)",
11361162
"instant": false,
11371163
"legendFormat": "Kepler Reboot Attribution Gap - ΔJ/s",
11381164
"range": true,
@@ -1302,7 +1328,7 @@
13021328
},
13031329
"editorMode": "code",
13041330
"exemplar": false,
1305-
"expr": "sum(rate(kepler_node_cpu_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s]))\n- \nsum(rate(kepler_process_cpu_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s]))",
1331+
"expr": "sum(rate(kepler_node_cpu_active_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s]))\n- \nsum(rate(kepler_process_cpu_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s]))",
13061332
"instant": false,
13071333
"legendFormat": "Kepler Reboot: Node - Process (J/s)",
13081334
"range": true,
@@ -1314,7 +1340,7 @@
13141340
"uid": "PDE6745920139CE56"
13151341
},
13161342
"editorMode": "code",
1317-
"expr": "sum(kepler_node_cpu_watts{job=\"${job}\", zone=\"${zone}\"}) \n- \nsum(kepler_process_cpu_watts{job=\"${job}\", zone=\"${zone}\"})",
1343+
"expr": "sum(kepler_node_cpu_active_watts{job=\"${job}\", zone=\"${zone}\"}) \n- \nsum(kepler_process_cpu_watts{job=\"${job}\", zone=\"${zone}\"})",
13181344
"hide": false,
13191345
"instant": false,
13201346
"legendFormat": "Kepler Reboot: Node - Process (W)",
@@ -1963,7 +1989,7 @@
19631989
"uid": "PDE6745920139CE56"
19641990
},
19651991
"editorMode": "code",
1966-
"expr": "100 * (\n sum(rate(kepler_node_cpu_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s])) \n -\n sum(rate(kepler_process_cpu_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s]))\n) / \nsum(rate(kepler_node_cpu_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s]))",
1992+
"expr": "100 * (\n sum(rate(kepler_node_cpu_active_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s])) \n -\n sum(rate(kepler_process_cpu_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s]))\n) / \nsum(rate(kepler_node_cpu_active_joules_total{job=\"${job}\", zone=\"${zone}\"}[20s]))",
19671993
"instant": false,
19681994
"legendFormat": "Process Attribution Gap (ΔJ/s)",
19691995
"range": true,

0 commit comments

Comments
 (0)