]> arthur.barton.de Git - netdata.git/commitdiff
web_log_plugin: update regex to match nginx request_time > 10sec
authorIlya <ilyamaschenko@gmail.com>
Mon, 6 Mar 2017 13:14:39 +0000 (22:14 +0900)
committerIlya <ilyamaschenko@gmail.com>
Mon, 6 Mar 2017 13:14:39 +0000 (22:14 +0900)
python.d/web_log.chart.py

index cfa60e2f846bf09105b831f19f9c278edf1826df..cbc8cd235b25bcc7958e8e2da11ab21f807c60c8 100644 (file)
@@ -315,7 +315,7 @@ class Service(LogService):
                                           r' (?P<code>[1-9]\d{2})'
                                           r' (?P<bytes_sent>\d+)'
                                           r' (?P<resp_length>\d+)'
-                                          r' (?P<resp_time>\d\.\d+) ')
+                                          r' (?P<resp_time>\d+\.\d+) ')
 
         acs_nginx_ext_append = re.compile(r'(?P<address>[\da-f.:]+)'
                                           r' -.*?"(?P<method>[A-Z]+)'
@@ -325,7 +325,7 @@ class Service(LogService):
                                           r' (?P<bytes_sent>\d+)'
                                           r' .*?'
                                           r' (?P<resp_length>\d+)'
-                                          r' (?P<resp_time>\d\.\d+)')
+                                          r' (?P<resp_time>\d+\.\d+)')
 
         def func_usec(time):
             return time