- final replace for format() - fixed metric id for host_latency dimension
- final replace for format() - fixed metric id for host_latency dimension
Evgeniy Kostenko committed
Aug 3, 2018 at 08:54 UTC
e7ae6bb3c838d0336f8e8667b30087f65a46e949
1 file changed
+2
-2
python.d/monit.chart.py
+2
-2
@@ -65,7 +65,7 @@ CHARTS = {
65
'lines': []
66
},
67
'host_latency': {
68
- 'options': ['hosts latency', 'Hosts latency', 'milliseconds/s', 'network', 'monit.hosts', 'line'],
68
+ 'options': ['hosts latency', 'Hosts latency', 'milliseconds/s', 'network', 'monit.host_latency', 'line'],
69
'lines': []
70
},
71
'net': {
@@ -111,7 +111,7 @@ class Service(UrlService):
111
self.debug("Skipping service from 'System' category, because it's useless in graphs")
112
continue
113
114
- xpath_query = "./service[@type='{:d}']".format(service_id)
114
+ xpath_query = "./service[@type='{0}']".format(service_id)
115
self.debug("Searching for {0} as {1}".format(service_category, xpath_query))
116
for service_node in xml.findall(xpath_query):
117