From 01861b85cb54fc93fdb2dcc15a06ad81e28c3c97 Mon Sep 17 00:00:00 2001
From: Simon Delamare <simon.delamare@ens-lyon.fr>
Date: Tue, 25 Apr 2023 10:07:48 +0200
Subject: [PATCH] [lyon] remove all BMC metrics from hercule, too unreliable

---
 .../sites/lyon/clusters/hercule/hercule.json  | 230 ------------------
 .../clusters/hercule/hercule_metrics.yaml     | 160 ------------
 2 files changed, 390 deletions(-)

diff --git a/data/grid5000/sites/lyon/clusters/hercule/hercule.json b/data/grid5000/sites/lyon/clusters/hercule/hercule.json
index 96076da62f7..a12eb1212a2 100644
--- a/data/grid5000/sites/lyon/clusters/hercule/hercule.json
+++ b/data/grid5000/sites/lyon/clusters/hercule/hercule.json
@@ -4,236 +4,6 @@
   "exotic": false,
   "kavlan": true,
   "metrics": [
-    {
-      "description": "Front node ambient temperature reported by BMC, in celsius",
-      "name": "bmc_ambient_temp_celsius",
-      "period": 5000,
-      "source": {
-        "id": 49,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Voltage of 12V Standby reported by BMC, in volt",
-      "labels": {
-        "id": "12v_standby"
-      },
-      "name": "bmc_other_voltage_volt",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 5,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Voltage of 5V Standby reported by BMC, in volt",
-      "labels": {
-        "id": "5v_standby"
-      },
-      "name": "bmc_other_voltage_volt",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 6,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Voltage of 5V reported by BMC, in volt",
-      "labels": {
-        "id": "5v"
-      },
-      "name": "bmc_other_voltage_volt",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 7,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Voltage of 3.3V Standby reported by BMC, in volt",
-      "labels": {
-        "id": "3.3v_standby"
-      },
-      "name": "bmc_other_voltage_volt",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 8,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Voltage of 3.3V reported by BMC, in volt",
-      "labels": {
-        "id": "3.3v"
-      },
-      "name": "bmc_other_voltage_volt",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 9,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Temperature of MEZZ1 reported by BMC, in celsius",
-      "labels": {
-        "id": "mezz1"
-      },
-      "name": "bmc_other_temp_celsius",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 11,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Temperature of CPU1 reported by BMC, in celsius",
-      "labels": {
-        "cpu": "1"
-      },
-      "name": "bmc_cpu_temp_celsius",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 12,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Temperature of CPU2 reported by BMC, in celsius",
-      "labels": {
-        "cpu": "2"
-      },
-      "name": "bmc_cpu_temp_celsius",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 13,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Temperature of DIMM ZONE 1 reported by BMC, in celsius",
-      "labels": {
-        "id": "dimm_zone_1"
-      },
-      "name": "bmc_other_temp_celsius",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 14,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Temperature of DIMM ZONE 2 reported by BMC, in celsius",
-      "labels": {
-        "id": "dimm_zone_2"
-      },
-      "name": "bmc_other_temp_celsius",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 15,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Temperature of PCH reported by BMC, in celsius",
-      "labels": {
-        "id": "pch"
-      },
-      "name": "bmc_other_temp_celsius",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 18,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Voltage of input reported by BMC, in volt",
-      "labels": {
-        "id": "input"
-      },
-      "name": "bmc_other_voltage_volt",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 51,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Current of input reported by BMC, in amp",
-      "labels": {
-        "id": "input"
-      },
-      "name": "bmc_other_current_amp",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 52,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Speed of fan 1 reported by BMC, in rpm",
-      "labels": {
-        "fan": "_1"
-      },
-      "name": "bmc_fan_speed_rpm",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 96,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Speed of fan 2 reported by BMC, in rpm",
-      "labels": {
-        "fan": "_2"
-      },
-      "name": "bmc_fan_speed_rpm",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 97,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Speed of fan 3 reported by BMC, in rpm",
-      "labels": {
-        "fan": "_3"
-      },
-      "name": "bmc_fan_speed_rpm",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 98,
-        "protocol": "ipmisensor"
-      }
-    },
-    {
-      "description": "Speed of fan 4 reported by BMC, in rpm",
-      "labels": {
-        "fan": "_4"
-      },
-      "name": "bmc_fan_speed_rpm",
-      "optional_period": 5000,
-      "period": 0,
-      "source": {
-        "id": 99,
-        "protocol": "ipmisensor"
-      }
-    },
     {
       "description": "Default subset of metrics from Prometheus Node Exporter",
       "name": "prom_default_metrics",
diff --git a/input/grid5000/sites/lyon/clusters/hercule/hercule_metrics.yaml b/input/grid5000/sites/lyon/clusters/hercule/hercule_metrics.yaml
index 3d541441c6b..6cfbe1f4e2e 100644
--- a/input/grid5000/sites/lyon/clusters/hercule/hercule_metrics.yaml
+++ b/input/grid5000/sites/lyon/clusters/hercule/hercule_metrics.yaml
@@ -8,166 +8,6 @@ metrics:
   #   source:
   #     protocol: wattmetre
 
-  - name: bmc_ambient_temp_celsius
-    description: Front node ambient temperature reported by BMC, in celsius
-    period: 5000
-    source:
-      protocol: ipmisensor
-      id: 49  # Inlet Temp
-
-  - name: bmc_other_voltage_volt
-    labels: {"id": "12v_standby"}
-    description: Voltage of 12V Standby reported by BMC, in volt
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 5  # 12V Standby
-
-  - name: bmc_other_voltage_volt
-    labels: {"id": "5v_standby"}
-    description: Voltage of 5V Standby reported by BMC, in volt
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 6  # 5V Standby
-
-  - name: bmc_other_voltage_volt
-    labels: {"id": "5v"}
-    description: Voltage of 5V reported by BMC, in volt
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 7  # 5V
-
-  - name: bmc_other_voltage_volt
-    labels: {"id": "3.3v_standby"}
-    description: Voltage of 3.3V Standby reported by BMC, in volt
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 8  # 3.3V Standby
-
-  - name: bmc_other_voltage_volt
-    labels: {"id": "3.3v"}
-    description: Voltage of 3.3V reported by BMC, in volt
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 9  # 3.3V
-
-  - name: bmc_other_temp_celsius
-    labels: {"id": "mezz1"}
-    description: Temperature of MEZZ1 reported by BMC, in celsius
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 11  # MEZZ1 TEMP
-
-  - name: bmc_cpu_temp_celsius
-    labels: {"cpu": "1"}
-    description: Temperature of CPU1 reported by BMC, in celsius
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 12  # CPU1 Temp
-
-  - name: bmc_cpu_temp_celsius
-    labels: {"cpu": "2"}
-    description: Temperature of CPU2 reported by BMC, in celsius
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 13  # CPU2 Temp
-
-  - name: bmc_other_temp_celsius
-    labels: {"id": "dimm_zone_1"}
-    description: Temperature of DIMM ZONE 1 reported by BMC, in celsius
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 14  # DIMM ZONE 1 Temp
-
-  - name: bmc_other_temp_celsius
-    labels: {"id": "dimm_zone_2"}
-    description: Temperature of DIMM ZONE 2 reported by BMC, in celsius
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 15  # DIMM ZONE 2 Temp
-
-  - name: bmc_other_temp_celsius
-    labels: {"id": "pch"}
-    description: Temperature of PCH reported by BMC, in celsius
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 18  # PCH Temp
-
-  - name: bmc_other_voltage_volt
-    labels: {"id": "input"}
-    description: Voltage of input reported by BMC, in volt
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 51  # Input Voltage
-
-  - name: bmc_other_current_amp
-    labels: {"id": "input"}
-    description: Current of input reported by BMC, in amp
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 52  # Input Current
-
-  - name: bmc_fan_speed_rpm
-    labels: {"fan": "_1"}
-    description: Speed of fan 1 reported by BMC, in rpm
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 96  # FAN_1
-
-  - name: bmc_fan_speed_rpm
-    labels: {"fan": "_2"}
-    description: Speed of fan 2 reported by BMC, in rpm
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 97  # FAN_2
-
-  - name: bmc_fan_speed_rpm
-    labels: {"fan": "_3"}
-    description: Speed of fan 3 reported by BMC, in rpm
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 98  # FAN_3
-
-  - name: bmc_fan_speed_rpm
-    labels: {"fan": "_4"}
-    description: Speed of fan 4 reported by BMC, in rpm
-    period: 0
-    optional_period: 5000
-    source:
-      protocol: ipmisensor
-      id: 99  # FAN_4
-
   - name: prom_default_metrics
     description: Default subset of metrics from Prometheus Node Exporter
     period: 0
-- 
GitLab