Fix System Info table merge and boot time unit in host-resources dashboard
Replace merge transformation with joinByField on instance — the merge couldn't combine rows from queries with different label cardinality (node_uname_info has many extra labels), producing 7 rows instead of 3. Fix boot time showing "56 years ago" by multiplying node_boot_time_seconds by 1000 — Grafana's dateTimeFromNow unit expects epoch milliseconds. Also hide the exported_nodename column (container hostname, not useful). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
45801dc349
commit
03cad2dc93
|
|
@ -108,7 +108,7 @@
|
||||||
"instant": true
|
"instant": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "node_boot_time_seconds{job=\"node-exporter\", instance=~\"$node\"}",
|
"expr": "node_boot_time_seconds{job=\"node-exporter\", instance=~\"$node\"} * 1000",
|
||||||
"legendFormat": "",
|
"legendFormat": "",
|
||||||
"refId": "B",
|
"refId": "B",
|
||||||
"format": "table",
|
"format": "table",
|
||||||
|
|
@ -234,17 +234,28 @@
|
||||||
},
|
},
|
||||||
"transformations": [
|
"transformations": [
|
||||||
{
|
{
|
||||||
"id": "merge",
|
"id": "joinByField",
|
||||||
"options": {}
|
"options": {
|
||||||
|
"byField": "instance",
|
||||||
|
"mode": "outer"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "organize",
|
"id": "organize",
|
||||||
"options": {
|
"options": {
|
||||||
"excludeByName": {
|
"excludeByName": {
|
||||||
"Time": true,
|
"Time 1": true,
|
||||||
"__name__": true,
|
"Time 2": true,
|
||||||
"job": true,
|
"Time 3": true,
|
||||||
|
"Time 4": true,
|
||||||
|
"__name__ 1": true,
|
||||||
|
"__name__ 2": true,
|
||||||
|
"job 1": true,
|
||||||
|
"job 2": true,
|
||||||
|
"job 3": true,
|
||||||
|
"job 4": true,
|
||||||
"domainname": true,
|
"domainname": true,
|
||||||
|
"exported_nodename": true,
|
||||||
"machine": true,
|
"machine": true,
|
||||||
"nodename": true,
|
"nodename": true,
|
||||||
"sysname": true,
|
"sysname": true,
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 83 KiB |
Loading…
Reference in New Issue