]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
node-proxy: update alert names
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 27 Sep 2023 09:41:49 +0000 (09:41 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 14:55:04 +0000 (14:55 +0000)
Given that the 'node-proxy' terminology is internal, let's change
the few node-proxy related alert names to something
more user friendly as they are intended to be seen by the user

(NODE_PROXY_xxx > HARDWARE_xxx).

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 14bfc07a1a3ad483f2f91c5d1fde9f073c12867e)

src/pybind/mgr/cephadm/agent.py

index 697f097e1434851012390f5e0eb678bfc4159fb1..2c99149998c26fa0cde33672c5c726687b6eea6d 100644 (file)
@@ -166,12 +166,12 @@ class NodeProxy:
 
     def raise_alert(self, data: Dict[str, Any]) -> None:
         mapping: Dict[str, str] = {
-            'storage': 'NODE_PROXY_STORAGE',
-            'memory': 'NODE_PROXY_MEMORY',
-            'processors': 'NODE_PROXY_PROCESSORS',
-            'network': 'NODE_PROXY_NETWORK',
-            'power': 'NODE_PROXY_POWER',
-            'fans': 'NODE_PROXY_FANS'
+            'storage': 'HARDWARE_STORAGE',
+            'memory': 'HARDWARE_MEMORY',
+            'processors': 'HARDWARE_PROCESSORS',
+            'network': 'HARDWARE_NETWORK',
+            'power': 'HARDWARE_POWER',
+            'fans': 'HARDWARE_FANS'
         }
 
         for component in data['data'].keys():