Skip to content

Commit 103b719

Browse files
committed
merge jetty thread metrics
1 parent 905ea68 commit 103b719

File tree

1 file changed

+6
-30
lines changed
  • instrumentation/jmx-metrics/library/src/main/resources/jmx/rules

1 file changed

+6
-30
lines changed

instrumentation/jmx-metrics/library/src/main/resources/jmx/rules/jetty.yaml

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,12 @@
11
---
22
rules:
33

4-
# Thread metrics for Jetty 12 and later
5-
- bean: org.eclipse.jetty.util.thread:context=*,type=queuedthreadpool,id=*
6-
# usually a single mbean instance exists, thus the metric is aggregated (sum for updowncounter)
7-
prefix: jetty.thread.
8-
unit: "{thread}"
9-
type: updowncounter
10-
mapping:
11-
# jetty.thread.count
12-
threads:
13-
metric: count
14-
desc: The current number of threads
15-
# jetty.thread.limit
16-
maxThreads:
17-
metric: limit
18-
desc: The configured maximum number of threads in the pool
19-
# jetty.thread.idle.count
20-
idleThreads:
21-
metric: idle.count
22-
desc: The current number of idle threads
23-
# jetty.thread.busy.count
24-
busyThreads:
25-
metric: busy.count
26-
desc: The current number of busy threads
27-
# jetty.thread.queue.size
28-
queueSize:
29-
metric: queue.size
30-
desc: The current job queue size
31-
32-
# Thread metrics for Jetty 9 to 11
33-
- bean: org.eclipse.jetty.util.thread:type=queuedthreadpool,id=*
4+
# Thread metrics
5+
- beans:
6+
# Jetty 12 and later
7+
- org.eclipse.jetty.util.thread:context=*,type=queuedthreadpool,id=*
8+
# Jetty 9 to 11
9+
- org.eclipse.jetty.util.thread:type=queuedthreadpool,id=*
3410
# usually a single mbean instance exists, thus the metric is aggregated (sum for updowncounter)
3511
prefix: jetty.thread.
3612
unit: "{thread}"

0 commit comments

Comments
 (0)