##// END OF EJS Templates
metrics: use promethues naming
super-admin -
r1012:095071a6 default
parent child Browse files
Show More
@@ -400,7 +400,7 b' class HTTPApplication(object):'
400 400 statsd = request.registry.statsd
401 401 if statsd:
402 402 statsd.incr(
403 'vcsserver_method_count', tags=[
403 'vcsserver_method_total', tags=[
404 404 "method:{}".format(method),
405 405 ])
406 406 return payload, remote, method, args, kwargs
@@ -690,7 +690,7 b' class HTTPApplication(object):'
690 690
691 691 statsd = request.registry.statsd
692 692 if statsd:
693 statsd.incr('vcsserver_exception')
693 statsd.incr('vcsserver_exception_total')
694 694 raise exception
695 695
696 696
@@ -63,14 +63,10 b' class RequestWrapperTween(object):'
63 63 elapsed_time_ms = 1000.0 * total
64 64 statsd.timing(
65 65 'vcsserver_req_timing', elapsed_time_ms,
66 tags=[
67 "path:{}".format(_path),
68 ]
66 tags=["path:{}".format(_path)]
69 67 )
70 68 statsd.incr(
71 'vcsserver_req_count', tags=[
72 "path:{}".format(_path),
73 ])
69 'vcsserver_req_total', tags=["path:{}".format(_path)])
74 70 return response
75 71
76 72
General Comments 0
You need to be logged in to leave comments. Login now