forked from open-telemetry/opentelemetry-java-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtomcat.yaml
More file actions
83 lines (78 loc) · 2.25 KB
/
tomcat.yaml
File metadata and controls
83 lines (78 loc) · 2.25 KB
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
76
77
78
79
80
81
82
83
---
# For Tomcat, the default JMX domain is "Catalina:", however with some deployments like embedded in spring-boot
# we can have the "Tomcat:" domain used, thus we use both MBean names for the metrics.
rules:
- beans:
- Catalina:type=Manager,host=localhost,context=*
- Tomcat:type=Manager,host=localhost,context=*
metricAttribute:
# minor divergence from tomcat.groovy to capture metric for all deployed webapps
context: param(context)
mapping:
activeSessions:
metric: tomcat.sessions
type: gauge
unit: "{session}"
desc: The number of active sessions
- beans:
- Catalina:type=GlobalRequestProcessor,name=*
- Tomcat:type=GlobalRequestProcessor,name=*
prefix: tomcat.
metricAttribute:
proto_handler: param(name)
mapping:
errorCount:
metric: errors
type: counter
unit: "{error}"
desc: The number of errors encountered
requestCount:
metric: request_count
type: counter
unit: "{request}"
desc: The total requests
maxTime:
metric: max_time
type: gauge
unit: ms
desc: Maximum time to process a request
processingTime:
metric: processing_time
type: counter
unit: ms
desc: The total processing time
bytesSent:
metric: traffic
type: counter
unit: By
desc: The number of bytes transmitted and received
metricAttribute:
direction: const(sent)
bytesReceived:
metric: traffic
type: counter
unit: By
desc: The number of bytes transmitted and received
metricAttribute:
direction: const(received)
- beans:
- Catalina:type=ThreadPool,name=*
- Tomcat:type=ThreadPool,name=*
prefix: tomcat.
metricAttribute:
proto_handler: param(name)
mapping:
currentThreadCount:
metric: threads
desc: The number of threads
type: gauge
unit: "{thread}"
metricAttribute:
state: const(idle)
currentThreadsBusy:
metric: threads
desc: The number of threads
type: gauge
unit: "{thread}"
metricAttribute:
state: const(busy)