/
jersey.yaml
45 lines (36 loc) · 1.24 KB
/
jersey.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
# Compatible & tested with Jersey 2.3
# Should be compatible with 2.x range
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
- javax/servlet/http/HttpServletRequest
- javax/servlet/http/HttpServletResponse
- java/util/Optional
- java/lang/Object
- java/lang/String
- java/net/URI
metrics:
ServletContainer.service(LURI;LURI;LHttpServletRequest;LHttpServletResponse;)LValue;:
- type: Timed
name: resource_latency
doc: Measuring http resource latencies
labels: ['path:$1.path', 'method:$2.method']
- type: Gauged
name: in_flight_requests
mode: in_flight
doc: Measuring in flight requests
labels: ['path:$1.path', 'method:$2.method']
ContainerResponse.<init>(LContainerRequest;LOutboundJaxrsResponse;)V:
- type: Counted
name: http_call_count
doc: Http methods call counts
labels: ['path:$0.requestUri.path', 'method:$0.method', 'status:$1.status']
system:
jvm:
- gc
- memory
- threads