Skip to content

Commit

Permalink
Ipmi up (#880)
Browse files Browse the repository at this point in the history
* feat: add target label for ipmi

* chore: update dashboards for ipmi
  • Loading branch information
kongfei605 authored Apr 16, 2024
1 parent 62c566e commit 9c7ecbd
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions inputs/ipmi/ipmi_dash.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"cate": "prometheus",
"value": "${datasource}"
},
"definition": "label_values(ipmi_bmc_info, ip)",
"reg": "",
"definition": "label_values(ipmi_bmc_info, target)",
"reg": "/.*/",
"multi": false
}
],
Expand All @@ -42,8 +42,8 @@
"targets": [
{
"refId": "A",
"expr": "ipmi_chassis_power_state{ip=\"$instance\"}",
"legend": "{{instance}}",
"expr": "ipmi_chassis_power_state{target=\"$instance\"}",
"legend": "{{target}}",
"maxDataPoints": 240
}
],
Expand Down Expand Up @@ -113,7 +113,7 @@
"targets": [
{
"refId": "A",
"expr": "ipmi_bmc_info{ip=\"$instance\"}",
"expr": "ipmi_bmc_info{target=\"$instance\"}",
"legend": "",
"maxDataPoints": 240
}
Expand All @@ -132,15 +132,15 @@
"colorMode": "value",
"calc": "lastNotNull",
"displayMode": "labelsOfSeriesToRows",
"linkMode": "appendLinkColumn",
"columns": [
"data_center",
"dept",
"env",
"firmware_revision",
"ip",
"manufacturer_id"
]
"manufacturer_id",
"target"
],
"linkMode": "appendLinkColumn"
},
"options": {
"standardOptions": {}
Expand Down Expand Up @@ -169,7 +169,7 @@
"targets": [
{
"refId": "A",
"expr": "ipmi_fan_speed_state{ip=\"$instance\"}",
"expr": "ipmi_fan_speed_state{target=\"$instance\"}",
"legend": "{{name}}",
"maxDataPoints": 240
}
Expand Down Expand Up @@ -217,7 +217,7 @@
"targets": [
{
"refId": "A",
"expr": "ipmi_fan_speed_rpm{ip=\"$instance\"}",
"expr": "ipmi_fan_speed_rpm{target=\"$instance\"}",
"legend": "{{name}}",
"maxDataPoints": 240
}
Expand Down Expand Up @@ -268,8 +268,8 @@
"targets": [
{
"refId": "A",
"expr": "ipmi_dcmi_power_consumption_watts{ip=\"$instance\"}",
"legend": "{{instance}}",
"expr": "ipmi_dcmi_power_consumption_watts{target=\"$instance\"}",
"legend": "{{target}}",
"maxDataPoints": 240
}
],
Expand Down Expand Up @@ -349,7 +349,7 @@
"targets": [
{
"refId": "A",
"expr": "ipmi_power_state{ip=\"$instance\"}",
"expr": "ipmi_power_state{target=\"$instance\"}",
"legend": "{{name}}",
"maxDataPoints": 240
}
Expand Down Expand Up @@ -397,7 +397,7 @@
"targets": [
{
"refId": "A",
"expr": "ipmi_power_watts{ip=\"$instance\"}",
"expr": "ipmi_power_watts{target=\"$instance\"}",
"legend": "{{name}}",
"maxDataPoints": 240
}
Expand Down Expand Up @@ -448,7 +448,7 @@
"targets": [
{
"refId": "A",
"expr": "ipmi_sensor_state{ip=\"$instance\"}",
"expr": "ipmi_sensor_state{target=\"$instance\"}",
"legend": "",
"maxDataPoints": 240
}
Expand All @@ -467,16 +467,16 @@
"colorMode": "value",
"calc": "lastNotNull",
"displayMode": "labelsOfSeriesToRows",
"linkMode": "appendLinkColumn",
"columns": [
"data_center",
"dept",
"env",
"ip",
"target",
"name",
"type",
"value"
]
],
"linkMode": "appendLinkColumn"
},
"options": {
"standardOptions": {}
Expand Down Expand Up @@ -505,7 +505,7 @@
"targets": [
{
"refId": "A",
"expr": "ipmi_temperature_state{ip=\"$instance\"}",
"expr": "ipmi_temperature_state{target=\"$instance\"}",
"legend": "{{name}}",
"maxDataPoints": 240
}
Expand Down Expand Up @@ -553,7 +553,7 @@
"targets": [
{
"refId": "A",
"expr": "ipmi_temperature_celsius{ip=\"$instance\"}",
"expr": "ipmi_temperature_celsius{target=\"$instance\"}",
"legend": "{{name}}",
"maxDataPoints": 240
}
Expand Down Expand Up @@ -608,7 +608,7 @@
"targets": [
{
"refId": "A",
"expr": "ipmi_voltage_state{ip=\"$instance\"}",
"expr": "ipmi_voltage_state{target=\"$instance\"}",
"legend": "{{name}}",
"maxDataPoints": 240
}
Expand Down Expand Up @@ -659,7 +659,7 @@
"targets": [
{
"refId": "A",
"expr": "ipmi_voltage_volts{ip=\"$instance\"}",
"expr": "ipmi_voltage_volts{target=\"$instance\"}",
"legend": "{{name}}",
"maxDataPoints": 240
}
Expand Down

0 comments on commit 9c7ecbd

Please sign in to comment.