From: Sarah Hoffmann Date: Sat, 18 Apr 2015 16:42:36 +0000 (+0200) Subject: change scale in munin slowest response graph X-Git-Tag: deploy~465 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/9a2c0f23a66130fa221a32d852a71ca985f0e36c change scale in munin slowest response graph --- diff --git a/munin/nominatim_query_speed_querylog b/munin/nominatim_query_speed_querylog index 4bbeac68..f35793fe 100755 --- a/munin/nominatim_query_speed_querylog +++ b/munin/nominatim_query_speed_querylog @@ -33,11 +33,11 @@ avgr.type GAUGE avgr.min 0 avgr.info Moving 5 minute average time to perform reverse -max.label Slowest time to response +max.label Slowest time to response (1/100) max.draw LINE max.type GAUGE max.min 0 -max.info Slowest query in last 5 minutes""" +max.info Slowest query in last 5 minutes (unit: 100s)""" ENTRY_REGEX = re.compile(r'\[[^]]+\] (?P[0-9.]+) (?P\d+) (?P[a-z]+) ') TIME_REGEX = re.compile(r'\[(?P\d\d\d\d)-(?P\d\d)-(?P\d\d) (?P\d\d):(?P\d\d):(?P\d\d)[0-9.]*\] ') @@ -160,4 +160,4 @@ if __name__ == '__main__': print('avgs.value', 0 if numsearch == 0 else sumsearch/numsearch) print('avgr.value', 0 if numrev == 0 else sumrev/numrev) - print('max.value', maxres) + print('max.value', maxres/100.0)