node: temperature: change legend from chip to chip_name

This commit is contained in:
leewis 2023-10-12 07:23:23 +08:00
parent 9a89211269
commit 825e38c7cd

View file

@ -13932,11 +13932,11 @@
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"expr": "node_hwmon_temp_celsius{instance=\"$node\",job=\"$job\"}",
"expr": "node_hwmon_temp_celsius{instance=\"$node\",job=\"$job\"} * on(chip) group_left(chip_name) node_hwmon_chip_names",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{ chip }} {{ sensor }} temp",
"legendFormat": "{{ chip_name }} {{ sensor }} temp",
"refId": "A",
"step": 240
},
@ -13945,12 +13945,12 @@
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"expr": "node_hwmon_temp_crit_alarm_celsius{instance=\"$node\",job=\"$job\"}",
"expr": "node_hwmon_temp_crit_alarm_celsius{instance=\"$node\",job=\"$job\"} * on(chip) group_left(chip_name) node_hwmon_chip_names",
"format": "time_series",
"hide": true,
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{ chip }} {{ sensor }} Critical Alarm",
"legendFormat": "{{ chip_name }} {{ sensor }} Critical Alarm",
"refId": "B",
"step": 240
},
@ -13959,11 +13959,11 @@
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"expr": "node_hwmon_temp_crit_celsius{instance=\"$node\",job=\"$job\"}",
"expr": "node_hwmon_temp_crit_celsius{instance=\"$node\",job=\"$job\"} * on(chip) group_left(chip_name) node_hwmon_chip_names",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{ chip }} {{ sensor }} Critical",
"legendFormat": "{{ chip_name }} {{ sensor }} Critical",
"refId": "C",
"step": 240
},
@ -13972,12 +13972,12 @@
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"expr": "node_hwmon_temp_crit_hyst_celsius{instance=\"$node\",job=\"$job\"}",
"expr": "node_hwmon_temp_crit_hyst_celsius{instance=\"$node\",job=\"$job\"} * on(chip) group_left(chip_name) node_hwmon_chip_names",
"format": "time_series",
"hide": true,
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{ chip }} {{ sensor }} Critical Historical",
"legendFormat": "{{ chip_name }} {{ sensor }} Critical Historical",
"refId": "D",
"step": 240
},
@ -13986,12 +13986,12 @@
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"expr": "node_hwmon_temp_max_celsius{instance=\"$node\",job=\"$job\"}",
"expr": "node_hwmon_temp_max_celsius{instance=\"$node\",job=\"$job\"} * on(chip) group_left(chip_name) node_hwmon_chip_names",
"format": "time_series",
"hide": true,
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{ chip }} {{ sensor }} Max",
"legendFormat": "{{ chip_name }} {{ sensor }} Max",
"refId": "E",
"step": 240
}