~xdavidwu/flux

caeb53616f121419b04d565d4a5cb4a79a9d06e1 — Pinghao Wu 19 days ago 14d283f
grafana: ipmi: adopt for new setup
1 files changed, 12 insertions(+), 12 deletions(-)

M monitoring/grafana/ipmi.yaml
M monitoring/grafana/ipmi.yaml => monitoring/grafana/ipmi.yaml +12 -12
@@ 16,8 16,8 @@ spec:
          format='celsius',
        ).addTarget(
          grafana.prometheus.target(
            'label_replace(ipmi_temperature_celsius{name=~"T.*|CPU.*", name!~".*Prochot"}, "host", "$1", "instance", "([^.]+).*")',
            legendFormat='{{host}} {{name}}'
            'ipmi_temperature_celsius{name=~"T.*|CPU.*", name!~".*Prochot"}',
            legendFormat='{{instance}} {{name}}'
          )
        ),
        gridPos={ x: 0, y: 0, w: 12, h: 8 },


@@ 29,8 29,8 @@ spec:
          format='celsius',
        ).addTarget(
          grafana.prometheus.target(
            'label_replace(ipmi_temperature_celsius{name=~"(In|Ex|Amb).*"}, "host", "$1", "instance", "([^.]+).*")',
            legendFormat='{{host}} {{name}}'
            'ipmi_temperature_celsius{name=~"(In|Ex|Amb).*"}',
            legendFormat='{{instance}} {{name}}'
          )
        ),
        gridPos={ x: 12, y: 0, w: 12, h: 8 },


@@ 41,7 41,7 @@ spec:
          datasource='$DS_PROMETHEUS',
        ).addTarget(
          grafana.prometheus.target(
            'ipmi_fan_speed_rpm{job="ipmi-parto0"}',
            'ipmi_fan_speed_rpm{instance="parto"}',
            legendFormat='{{name}}'
          )
        ),


@@ 53,7 53,7 @@ spec:
          datasource='$DS_PROMETHEUS',
        ).addTarget(
          grafana.prometheus.target(
            'ipmi_fan_speed_rpm{job="ipmi-parto1"}',
            'ipmi_fan_speed_rpm{instance="parto1"}',
            legendFormat='{{name}}'
          )
        ),


@@ 66,8 66,8 @@ spec:
          format='watt',
        ).addTarget(
          grafana.prometheus.target(
            'label_replace(ipmi_power_watts, "host", "$1", "instance", "([^.]+).*")',
            legendFormat='{{host}} {{name}}'
            'ipmi_power_watts',
            legendFormat='{{instance}} {{name}}'
          )
        ),
        gridPos={ x: 0, y: 16, w: 12, h: 8 },


@@ 79,8 79,8 @@ spec:
          format='amp',
        ).addTarget(
          grafana.prometheus.target(
            'label_replace(ipmi_current_amperes, "host", "$1", "instance", "([^.]+).*")',
            legendFormat='{{host}} {{name}}'
            'ipmi_current_amperes',
            legendFormat='{{instance}} {{name}}'
          )
        ),
        gridPos={ x: 12, y: 16, w: 12, h: 8 },


@@ 92,8 92,8 @@ spec:
          format='volt',
        ).addTarget(
          grafana.prometheus.target(
            'label_replace(ipmi_voltage_volts, "host", "$1", "instance", "([^.]+).*")',
            legendFormat='{{host}} {{name}}'
            'ipmi_voltage_volts',
            legendFormat='{{instance}} {{name}}'
          )
        ),
        gridPos={ x: 0, y: 24, w: 12, h: 8 },