From 2119e72539123fdd0a48ac6468d8bcb8bb738a70 Mon Sep 17 00:00:00 2001 From: Jopaul John Date: Thu, 4 Nov 2021 11:25:19 +0100 Subject: [PATCH] Converted the metrics name into lower case --- smartprom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smartprom.py b/smartprom.py index 5b7e5af..ae0777f 100755 --- a/smartprom.py +++ b/smartprom.py @@ -146,7 +146,7 @@ def collect(): for key, values in attrs.items(): # Create metric if does not exist if key not in METRICS: - name = key.replace('-', '_').replace(' ', '_').replace('.', '').replace('/', '_') + name = key.replace('-', '_').replace(' ', '_').replace('.', '').replace('/', '_').lower() desc = key.replace('_', ' ') if typ == 'sat': num = hex(values[0])