##// 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 statsd = request.registry.statsd
400 statsd = request.registry.statsd
401 if statsd:
401 if statsd:
402 statsd.incr(
402 statsd.incr(
403 'vcsserver_method_count', tags=[
403 'vcsserver_method_total', tags=[
404 "method:{}".format(method),
404 "method:{}".format(method),
405 ])
405 ])
406 return payload, remote, method, args, kwargs
406 return payload, remote, method, args, kwargs
@@ -690,7 +690,7 b' class HTTPApplication(object):'
690
690
691 statsd = request.registry.statsd
691 statsd = request.registry.statsd
692 if statsd:
692 if statsd:
693 statsd.incr('vcsserver_exception')
693 statsd.incr('vcsserver_exception_total')
694 raise exception
694 raise exception
695
695
696
696
@@ -63,14 +63,10 b' class RequestWrapperTween(object):'
63 elapsed_time_ms = 1000.0 * total
63 elapsed_time_ms = 1000.0 * total
64 statsd.timing(
64 statsd.timing(
65 'vcsserver_req_timing', elapsed_time_ms,
65 'vcsserver_req_timing', elapsed_time_ms,
66 tags=[
66 tags=["path:{}".format(_path)]
67 "path:{}".format(_path),
68 ]
69 )
67 )
70 statsd.incr(
68 statsd.incr(
71 'vcsserver_req_count', tags=[
69 'vcsserver_req_total', tags=["path:{}".format(_path)])
72 "path:{}".format(_path),
73 ])
74 return response
70 return response
75
71
76
72
General Comments 0
You need to be logged in to leave comments. Login now