@cryptotaxi247 / netdata-1 / commits / 3e7371d1a

web_log plugin: add GET dimension from start. Always green now

Ilya committed Feb 16, 2017 at 23:07 UTC 3e7371d1ad4480d09afbb68ae1eaacdccacf790a
1 file changed +4 -2
python.d/web_log.chart.py
+4 -2
@@ -55,6 +55,7 @@ CHARTS = {
55 'http_method': {
56 'options': [None, 'Requests Per HTTP Method', 'requests/s', 'http methods', 'web_log.http_method', 'stacked'],
57 'lines': [
58 + ['GET', 'GET', 'incremental', 1, 1]
59 ]},
60 'requests_per_ipproto': {
61 'options': [None, 'Requests Per IP Protocol', 'requests/s', 'ip protocols', 'web_log.requests_per_ipproto',
@@ -104,7 +105,7 @@ class Service(LogService):
105 'resp_time_avg': 0, 'unique_cur_ipv4': 0, 'unique_cur_ipv6': 0, '2xx': 0,
106 '5xx': 0, '3xx': 0, '4xx': 0, '1xx': 0, '0xx': 0, 'unmatched': 0, 'req_ipv4': 0,
107 'req_ipv6': 0, 'unique_tot_ipv4': 0, 'unique_tot_ipv6': 0, 'successful_requests': 0,
107 - 'redirects': 0, 'bad_requests': 0, 'server_errors': 0, 'other_requests': 0}
108 + 'redirects': 0, 'bad_requests': 0, 'server_errors': 0, 'other_requests': 0, 'GET': 0}
109
110 def check(self):
111 """
@@ -374,7 +375,8 @@ class Service(LogService):
375 ' web_log.detailed_response_codes stacked 1 %s\n' % (job_name, self.update_every)
376 self.http_method_chart = 'CHART %s.http_method' \
377 ' "" "Requests Per HTTP Method" requests/s "http methods"' \
377 - ' web_log.http_method stacked 2 %s\n' % (job_name, self.update_every)
378 + ' web_log.http_method stacked 2 %s\n' \
379 + 'DIMENSION GET GET incremental\n' % (job_name, self.update_every)
380
381 # Remove 'request_time' chart from ORDER if resp_time not in match_dict
382 if 'resp_time' not in match_dict: