From fe3c76c7b02d80abbd7f7c1bcf7cf006ea32605a Mon Sep 17 00:00:00 2001
From: David Loup <david.loup@inria.fr>
Date: Fri, 17 Apr 2020 17:21:53 +0200
Subject: [PATCH] [generated/kwollect/grenoble] Add metrics for dahu

---
 .../sites/grenoble/clusters/dahu/dahu.json    | 191 ++++++++++++++++++
 .../grenoble/clusters/dahu/dahu_metrics.yaml  | 153 ++++++++++++++
 2 files changed, 344 insertions(+)
 create mode 100644 input/grid5000/sites/grenoble/clusters/dahu/dahu_metrics.yaml

diff --git a/data/grid5000/sites/grenoble/clusters/dahu/dahu.json b/data/grid5000/sites/grenoble/clusters/dahu/dahu.json
index 4c65a39bb62..e9e607e4095 100644
--- a/data/grid5000/sites/grenoble/clusters/dahu/dahu.json
+++ b/data/grid5000/sites/grenoble/clusters/dahu/dahu.json
@@ -1,6 +1,197 @@
 {
   "created_at": "Thu, 22 Mar 2018 00:00:00 GMT",
   "kavlan": true,
+  "metrics": [
+    {
+      "description": "Input byte counter for the network device port connected to the node",
+      "name": "network_ifacein_bytes_total",
+      "period": 1000,
+      "source": {
+        "protocol": "network_equipment"
+      }
+    },
+    {
+      "description": "Output byte counter for the network device port connected to the node",
+      "name": "network_ifaceout_bytes_total",
+      "period": 1000,
+      "source": {
+        "protocol": "network_equipment"
+      }
+    },
+    {
+      "description": "Front node ambiant temperature reported by BMC, in celsius",
+      "name": "bmc_temp_ambiant_celsius",
+      "period": 5000,
+      "scale_factor": 0.1,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.700.20.1.6.1.1",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Power consumption of node reported by BMC, in watt",
+      "name": "bmc_power_node_watt",
+      "period": 5000,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.600.30.1.6.1.1",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Voltage of PSU 1 reported by BMC, in volt",
+      "name": "bmc_voltage_psu1_volt",
+      "optional_period": 5000,
+      "period": 0,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.600.12.1.16.1.1",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Voltage of PSU 2 reported by BMC, in volt",
+      "name": "bmc_voltage_psu2_volt",
+      "optional_period": 5000,
+      "period": 0,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.600.12.1.16.1.2",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Current of PSU 1 reported by BMC, in amp",
+      "name": "bmc_current_psu1_amp",
+      "optional_period": 5000,
+      "period": 0,
+      "scale_factor": 0.1,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.600.30.1.6.1.2",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Current of PSU 2 reported by BMC, in amp",
+      "name": "bmc_current_psu2_amp",
+      "optional_period": 5000,
+      "period": 0,
+      "scale_factor": 0.1,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.600.30.1.6.1.3",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Cumulated power consumption of node reported by BMC, in watt",
+      "name": "bmc_power_node_watt_total",
+      "optional_period": 5000,
+      "period": 0,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.600.60.1.7.1.1",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Speed of Fan 1A reported by BMC, in rpm",
+      "name": "bmc_fanspeed_fan1a_rpm",
+      "optional_period": 5000,
+      "period": 0,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.1",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Speed of Fan 1B reported by BMC, in rpm",
+      "name": "bmc_fanspeed_fan1b_rpm",
+      "optional_period": 5000,
+      "period": 0,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.2",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Speed of Fan 2A reported by BMC, in rpm",
+      "name": "bmc_fanspeed_fan2a_rpm",
+      "optional_period": 5000,
+      "period": 0,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.3",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Speed of Fan 2B reported by BMC, in rpm",
+      "name": "bmc_fanspeed_fan2b_rpm",
+      "optional_period": 5000,
+      "period": 0,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.4",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Speed of Fan 3A reported by BMC, in rpm",
+      "name": "bmc_fanspeed_fan3a_rpm",
+      "optional_period": 5000,
+      "period": 0,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.5",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Speed of Fan 3B reported by BMC, in rpm",
+      "name": "bmc_fanspeed_fan3b_rpm",
+      "optional_period": 5000,
+      "period": 0,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.6",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Speed of Fan 4A reported by BMC, in rpm",
+      "name": "bmc_fanspeed_fan4a_rpm",
+      "optional_period": 5000,
+      "period": 0,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.7",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Speed of Fan 4B reported by BMC, in rpm",
+      "name": "bmc_fanspeed_fan4b_rpm",
+      "optional_period": 5000,
+      "period": 0,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.8",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Temperature of CPU 1 reported by BMC, in celsius",
+      "name": "bmc_temp_cpu1_celsius",
+      "optional_period": 5000,
+      "period": 0,
+      "scale_factor": 0.1,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.700.20.1.6.1.2",
+        "protocol": "snmp"
+      }
+    },
+    {
+      "description": "Temperature of CPU 2 reported by BMC, in celsius",
+      "name": "bmc_temp_cpu2_celsius",
+      "optional_period": 5000,
+      "period": 0,
+      "scale_factor": 0.1,
+      "source": {
+        "id": "1.3.6.1.4.1.674.10892.5.4.700.20.1.6.1.3",
+        "protocol": "snmp"
+      }
+    }
+  ],
   "model": "Dell PowerEdge C6420",
   "priority": "201800",
   "queues": [
diff --git a/input/grid5000/sites/grenoble/clusters/dahu/dahu_metrics.yaml b/input/grid5000/sites/grenoble/clusters/dahu/dahu_metrics.yaml
new file mode 100644
index 00000000000..6d3fc9c1b24
--- /dev/null
+++ b/input/grid5000/sites/grenoble/clusters/dahu/dahu_metrics.yaml
@@ -0,0 +1,153 @@
+---
+metrics:
+
+- name: network_ifacein_bytes_total
+  description: Input byte counter for the network device port connected to the node
+  period: 1000
+  source:
+    protocol: network_equipment
+
+- name: network_ifaceout_bytes_total
+  description: Output byte counter for the network device port connected to the node
+  period: 1000
+  source:
+    protocol: network_equipment
+
+- name: bmc_temp_ambiant_celsius
+  description: Front node ambiant temperature reported by BMC, in celsius
+  period: 5000
+  scale_factor: 0.1
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.700.20.1.6.1.1
+
+- name: bmc_power_node_watt
+  description: Power consumption of node reported by BMC, in watt
+  period: 5000
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.600.30.1.6.1.1
+
+- name: bmc_voltage_psu1_volt
+  description: Voltage of PSU 1 reported by BMC, in volt
+  period: 0
+  optional_period: 5000
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.600.12.1.16.1.1
+
+- name: bmc_voltage_psu2_volt
+  description: Voltage of PSU 2 reported by BMC, in volt
+  period: 0
+  optional_period: 5000
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.600.12.1.16.1.2
+
+- name: bmc_current_psu1_amp
+  description: Current of PSU 1 reported by BMC, in amp
+  period: 0
+  optional_period: 5000
+  scale_factor: 0.1
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.600.30.1.6.1.2
+
+- name: bmc_current_psu2_amp
+  description: Current of PSU 2 reported by BMC, in amp
+  period: 0
+  optional_period: 5000
+  scale_factor: 0.1
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.600.30.1.6.1.3
+
+- name: bmc_power_node_watt_total
+  description: Cumulated power consumption of node reported by BMC, in watt
+  period: 0
+  optional_period: 5000
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.600.60.1.7.1.1
+
+- name: bmc_fanspeed_fan1a_rpm
+  description: Speed of Fan 1A reported by BMC, in rpm
+  period: 0
+  optional_period: 5000
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.1
+
+- name: bmc_fanspeed_fan1b_rpm
+  description: Speed of Fan 1B reported by BMC, in rpm
+  period: 0
+  optional_period: 5000
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.2
+
+- name: bmc_fanspeed_fan2a_rpm
+  description: Speed of Fan 2A reported by BMC, in rpm
+  period: 0
+  optional_period: 5000
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.3
+
+- name: bmc_fanspeed_fan2b_rpm
+  description: Speed of Fan 2B reported by BMC, in rpm
+  period: 0
+  optional_period: 5000
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.4
+
+- name: bmc_fanspeed_fan3a_rpm
+  description: Speed of Fan 3A reported by BMC, in rpm
+  period: 0
+  optional_period: 5000
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.5
+
+- name: bmc_fanspeed_fan3b_rpm
+  description: Speed of Fan 3B reported by BMC, in rpm
+  period: 0
+  optional_period: 5000
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.6
+
+- name: bmc_fanspeed_fan4a_rpm
+  description: Speed of Fan 4A reported by BMC, in rpm
+  period: 0
+  optional_period: 5000
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.7
+
+- name: bmc_fanspeed_fan4b_rpm
+  description: Speed of Fan 4B reported by BMC, in rpm
+  period: 0
+  optional_period: 5000
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.8
+
+- name: bmc_temp_cpu1_celsius
+  description: Temperature of CPU 1 reported by BMC, in celsius
+  period: 0
+  optional_period: 5000
+  scale_factor: 0.1
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.700.20.1.6.1.2
+
+- name: bmc_temp_cpu2_celsius
+  description: Temperature of CPU 2 reported by BMC, in celsius
+  period: 0
+  optional_period: 5000
+  scale_factor: 0.1
+  source:
+    protocol: snmp
+    id: 1.3.6.1.4.1.674.10892.5.4.700.20.1.6.1.3
-- 
GitLab