X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f6cf89fdde89f3ae26cb5146c6b2124cf9022f77..b1b25d9a10ea7b97e12effc4313f140c17730c78:/munin/nominatim_requests_querylog?ds=inline diff --git a/munin/nominatim_requests_querylog b/munin/nominatim_requests_querylog index aa41a4de..8a103cfc 100755 --- a/munin/nominatim_requests_querylog +++ b/munin/nominatim_requests_querylog @@ -28,6 +28,9 @@ z2.type GAUGE z3.label search (no result) z3.draw STACK z3.type GAUGE +z4.label lookup +z4.draw STACK +z4.type GAUGE z4.label details z4.draw STACK z4.type GAUGE""" @@ -134,6 +137,7 @@ if __name__ == '__main__': reverse = 0 searchy = 0 searchn = 0 + lookup = 0 details = 0 if 'NOMINATIM_QUERYLOG' in os.environ: lf = LogFile(os.environ['NOMINATIM_QUERYLOG']) @@ -146,6 +150,8 @@ if __name__ == '__main__': searchn += 1 else: searchy += 1 + elif l['type'] == 'place': + lookup +=1 else: details += 1 @@ -153,4 +159,5 @@ if __name__ == '__main__': print('z1.value', reverse/5) print('z2.value', searchy/5) print('z3.value', searchn/5) + print('z4.value', lookup/5) print('z4.value', details/5)