]> arthur.barton.de Git - netdata.git/commitdiff
web_log plugin: repalce spaces in "name" with "_"
authorIlya <ilyamaschenko@gmail.com>
Fri, 10 Feb 2017 02:52:34 +0000 (11:52 +0900)
committerIlya <ilyamaschenko@gmail.com>
Fri, 10 Feb 2017 02:52:34 +0000 (11:52 +0900)
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'