From: Ilya Date: Thu, 16 Feb 2017 14:07:27 +0000 (+0900) Subject: web_log plugin: add GET dimension from start. Always green now X-Git-Tag: ab-debian_0.20170221.01-0ab1~1^2~4^2~1 X-Git-Url: https://arthur.barton.de/gitweb/?p=netdata.git;a=commitdiff_plain;h=3e7371d1ad4480d09afbb68ae1eaacdccacf790a web_log plugin: add GET dimension from start. Always green now --- diff --git a/python.d/web_log.chart.py b/python.d/web_log.chart.py index 9b9ff653..9497b3d8 100644 --- a/python.d/web_log.chart.py +++ b/python.d/web_log.chart.py @@ -55,6 +55,7 @@ CHARTS = { 'http_method': { 'options': [None, 'Requests Per HTTP Method', 'requests/s', 'http methods', 'web_log.http_method', 'stacked'], 'lines': [ + ['GET', 'GET', 'incremental', 1, 1] ]}, 'requests_per_ipproto': { 'options': [None, 'Requests Per IP Protocol', 'requests/s', 'ip protocols', 'web_log.requests_per_ipproto', @@ -104,7 +105,7 @@ class Service(LogService): 'resp_time_avg': 0, 'unique_cur_ipv4': 0, 'unique_cur_ipv6': 0, '2xx': 0, '5xx': 0, '3xx': 0, '4xx': 0, '1xx': 0, '0xx': 0, 'unmatched': 0, 'req_ipv4': 0, 'req_ipv6': 0, 'unique_tot_ipv4': 0, 'unique_tot_ipv6': 0, 'successful_requests': 0, - 'redirects': 0, 'bad_requests': 0, 'server_errors': 0, 'other_requests': 0} + 'redirects': 0, 'bad_requests': 0, 'server_errors': 0, 'other_requests': 0, 'GET': 0} def check(self): """ @@ -374,7 +375,8 @@ class Service(LogService): ' web_log.detailed_response_codes stacked 1 %s\n' % (job_name, self.update_every) self.http_method_chart = 'CHART %s.http_method' \ ' "" "Requests Per HTTP Method" requests/s "http methods"' \ - ' web_log.http_method stacked 2 %s\n' % (job_name, self.update_every) + ' web_log.http_method stacked 2 %s\n' \ + 'DIMENSION GET GET incremental\n' % (job_name, self.update_every) # Remove 'request_time' chart from ORDER if resp_time not in match_dict if 'resp_time' not in match_dict: