/
tomcat.yaml
75 lines (65 loc) · 2.3 KB
/
tomcat.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Example tomcat request instrumentation. We demo instrumenting for
#
# - Basic Servlets
# - JSP
# - Jersey REST Resources (the same as in jersey.yaml)
imports:
- com/fleury/resources/HelloWorldResource
- org/glassfish/jersey/server/ContainerRequest
- org/glassfish/jersey/server/ContainerResponse
- org/glassfish/jersey/message/internal/OutboundJaxrsResponse
- org/glassfish/jersey/internal/util/collection/Value
- org/glassfish/jersey/servlet/ServletContainer
- org/apache/jasper/servlet/JspServlet
- javax/servlet/http/HttpServletRequest
- javax/servlet/http/HttpServletResponse
- javax/servlet/http/HttpServlet
- java/util/Optional
- java/lang/Object
- java/lang/String
- java/net/URI
metrics:
# Basic Servlet
HttpServlet.service(LHttpServletRequest;LHttpServletResponse;)V:
- type: Timed
name: servlet_resource_latency
doc: Measuring http resource latencies
labels: ['path:$0.servletPath', 'method:$0.method']
- type: Gauged
name: servlet_in_flight_requests
mode: in_flight
doc: Measuring in flight requests
labels: ['path:$0.servletPath', 'method:$0.method']
# JSP Servlet
JspServlet.service(LHttpServletRequest;LHttpServletResponse;)V:
- type: Timed
name: jsp_resource_latency
doc: Measuring http resource latencies
labels: ['path:$0.servletPath', 'method:$0.method']
- type: Gauged
name: jsp_in_flight_requests
mode: in_flight
doc: Measuring in flight requests
labels: ['path:$0.servletPath', 'method:$0.method']
# Jersey Resources
ServletContainer.service(LURI;LURI;LHttpServletRequest;LHttpServletResponse;)LValue;:
- type: Timed
name: jersey_resource_latency
doc: Measuring http resource latencies
labels: ['path:$1.path', 'method:$2.method']
- type: Gauged
name: jersey_in_flight_requests
mode: in_flight
doc: Measuring in flight requests
labels: ['path:$1.path', 'method:$2.method']
# Jersey Resources - tracks call count by response code (status)
ContainerResponse.<init>(LContainerRequest;LOutboundJaxrsResponse;)V:
- type: Counted
name: jersey_http_call_count
doc: Http methods call counts
labels: ['path:$0.requestUri.path', 'method:$0.method', 'status:$1.status']
system:
jvm:
- gc
- memory
- threads