]> arthur.barton.de Git - netdata.git/blobdiff - python.d/web_log.chart.py
web_log plugin: repalce spaces in "name" with "_"
[netdata.git] / python.d / web_log.chart.py
index 9f049cddb9f72f2b27e26659b6995a4b77b8bfef..28ad0d445e18e8cf296e0342ac0375b2530653f6 100644 (file)
@@ -186,7 +186,7 @@ class Service(LogService):
             """
             add_to_name = override_name or name
             if add_to_name:
-                return '_'.join(['web_log', add_to_name])
+                return '_'.join(['web_log', re.sub('\s+', '_', add_to_name)])
             else:
                 return 'web_log'