From 3b4dbc739666a58fab6065022991d455c69c73ed Mon Sep 17 00:00:00 2001 From: 383c57 <383c57@gmail.com> Date: Wed, 8 Mar 2017 20:56:51 +0900 Subject: [PATCH 1/1] fix: replace dot with _ at the dimension id --- python.d/nsd.chart.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python.d/nsd.chart.py b/python.d/nsd.chart.py index 1dd128f1..68bb4f23 100644 --- a/python.d/nsd.chart.py +++ b/python.d/nsd.chart.py @@ -87,7 +87,7 @@ class Service(ExecutableService): r = self.regex stats = dict((k.replace('.', '_'), int(v)) for k, v in r.findall(''.join(lines))) - stats.setdefault('num.opcode.NOTIFY', 0) - stats.setdefault('num.type.TYPE252', 0) - stats.setdefault('num.type.TYPE255', 0) + stats.setdefault('num_opcode_NOTIFY', 0) + stats.setdefault('num_type_TYPE252', 0) + stats.setdefault('num_type_TYPE255', 0) return stats -- 2.39.2