From c9a42354fac29dfcea7bb1fd4f084a0a70b327c0 Mon Sep 17 00:00:00 2001
From: Nicolas Perrin <nicolas.perrin@inria.fr>
Date: Fri, 13 Oct 2023 10:16:28 +0200
Subject: [PATCH] [rennes][abacus18] add metrics

---
 .../rennes/clusters/abacus18/abacus18.json    | 46 ++++++++++++++++++-
 .../clusters/abacus18/nodes/abacus18-1.json   |  2 +-
 .../rennes/clusters/abacus18/abacus18.yaml    |  2 +-
 3 files changed, 47 insertions(+), 3 deletions(-)

diff --git a/data/grid5000/sites/rennes/clusters/abacus18/abacus18.json b/data/grid5000/sites/rennes/clusters/abacus18/abacus18.json
index d1e66696372..b345b864a66 100644
--- a/data/grid5000/sites/rennes/clusters/abacus18/abacus18.json
+++ b/data/grid5000/sites/rennes/clusters/abacus18/abacus18.json
@@ -4,7 +4,51 @@
   "exotic": false,
   "kavlan": false,
   "metrics": [
-
+    {
+      "description": "Default subset of metrics from Prometheus Node Exporter",
+      "name": "prom_default_metrics",
+      "optional_period": 15000,
+      "period": 0,
+      "source": {
+        "id": [
+          "node_boot_time_seconds",
+          "node_cpu_scaling_frequency_hertz",
+          "node_cpu_seconds_total",
+          "node_filesystem_free_bytes",
+          "node_filesystem_size_bytes",
+          "node_load1",
+          "node_load15",
+          "node_load5",
+          "node_memory_Buffers_bytes",
+          "node_memory_Cached_bytes",
+          "node_memory_MemAvailable_bytes",
+          "node_memory_MemFree_bytes",
+          "node_memory_MemTotal_bytes",
+          "node_memory_Shmem_bytes",
+          "node_memory_SwapFree_bytes",
+          "node_memory_SwapTotal_bytes",
+          "node_network_receive_bytes_total",
+          "node_network_receive_packets_total",
+          "node_network_transmit_bytes_total",
+          "node_network_transmit_packets_total",
+          "node_procs_blocked",
+          "node_procs_running",
+          "kwollect_custom"
+        ],
+        "port": 9100,
+        "protocol": "prometheus"
+      }
+    },
+    {
+      "description": "All metrics from Prometheus Node Exporter",
+      "name": "prom_all_metrics",
+      "optional_period": 15000,
+      "period": 0,
+      "source": {
+        "port": 9100,
+        "protocol": "prometheus"
+      }
+    }
   ],
   "model": "PowerEdge R7525",
   "queues": [
diff --git a/data/grid5000/sites/rennes/clusters/abacus18/nodes/abacus18-1.json b/data/grid5000/sites/rennes/clusters/abacus18/nodes/abacus18-1.json
index 9772e88aeb8..25d9be4c057 100644
--- a/data/grid5000/sites/rennes/clusters/abacus18/nodes/abacus18-1.json
+++ b/data/grid5000/sites/rennes/clusters/abacus18/nodes/abacus18-1.json
@@ -310,7 +310,7 @@
   "supported_job_types": {
     "besteffort": true,
     "deploy": true,
-    "max_walltime": 0,
+    "max_walltime": 604800,
     "queues": [
       "admin",
       "testing"
diff --git a/input/grid5000/sites/rennes/clusters/abacus18/abacus18.yaml b/input/grid5000/sites/rennes/clusters/abacus18/abacus18.yaml
index aca1f486e4c..be02f5ef1ff 100644
--- a/input/grid5000/sites/rennes/clusters/abacus18/abacus18.yaml
+++ b/input/grid5000/sites/rennes/clusters/abacus18/abacus18.yaml
@@ -11,7 +11,7 @@ nodes:
     supported_job_types:
       deploy: true
       besteffort: true
-      max_walltime: 0
+      max_walltime: 604800
     processor:
       microarchitecture: Zen 2
       clock_speed: 2300000000
-- 
GitLab