You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instrumentation/jmx-metrics/library/jetty.md
+30-10Lines changed: 30 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ The metrics captured and their respective attributes depend on the Jetty version
8
8
9
9
## Jetty 12 and later
10
10
11
-
Those metrics require the following Jetty modules to be enabled : `jmx`, `http`and `statistics`.
11
+
Those metrics require the following Jetty modules to be enabled : `jmx`, `http`, `statistics`, `sessions`and at least one of `ee8-deploy`, `ee9-deploy` or `ee10-deploy`.
@@ -17,17 +17,37 @@ Those metrics require the following Jetty modules to be enabled : `jmx`, `http`
17
17
| jetty.thread.busy.count | UpDownCounter | jetty.thread.pool.id, jetty.thread.context | The current number of busy threads |
18
18
| jetty.thread.idle.count | UpDownCounter | jetty.thread.pool.id, jetty.thread.context | The current number of idle threads |
19
19
| jetty.thread.queue.size | UpDownCounter | jetty.thread.pool.id, jetty.thread.context | The current job queue size |
20
-
| jetty.io.select.count | Counter | jetty.selector.resource, jetty.selector.id | The number of select calls |
20
+
| jetty.io.select.count | Counter | jetty.selector.context, jetty.selector.id | The number of select calls |
21
+
| jetty.session.count | UpDownCounter | jetty.context, jetty.session.cache.id | Current number of active sessions |
22
+
| jetty.session.count.max | Gauge | jetty.context, jetty.session.cache.id | Maximum number of active sessions |
23
+
24
+
-`jetty.context` corresponds to the deployed application subfolder in `webapps` folder.
25
+
-`jetty.selector.context` is a technical string identifier, high cardinality with values like `HTTP_1_1@7674f035` but stable per Jetty process instance
26
+
-`jetty.selector.id` is a technical numeric identifier, usually with low cardinality between `0` and `9`.
27
+
-`jetty.session.cache.id` is a technical numeric identifier, usually single `0` value is used
28
+
-`jetty.thread.context` is a technical string identifier, high cardinality with values like `Server@5a411614` but stable per Jetty process instance
29
+
-`jetty.thread.pool.id` is a technical numeric identifier, usually single `0` value is used
21
30
22
31
## Jetty 9 to 11
23
32
24
33
Those metrics require the following Jetty modules to be enabled : `jmx`, `http` and `stats`.
| jetty.session.duration.max | Gauge | jetty.context, jetty.session.handler.id | The maximum session duration |
46
+
| jetty.session.duration.mean | Gauge | jetty.context, jetty.session.handler.id | The mean session duration |
47
+
48
+
-`jetty.context` corresponds to the deployed application subfolder in `webapps` folder.
49
+
-`jetty.selector.context` is a technical string identifier, high cardinality with values like `HTTP_1_1@7674f035` but stable per Jetty process instance
50
+
-`jetty.selector.id` is a technical numeric identifier, usually with low cardinality between `0` and `9`.
51
+
-`jetty.session.cache.id` is a technical numeric identifier, usually single `0` value is used
52
+
-`jetty.thread.pool.id` is a technical numeric identifier, usually single `0` value is used
53
+
-`jetty.session.handler.id` is a technical numeric identifier, usually single `0` value is used
Copy file name to clipboardExpand all lines: instrumentation/jmx-metrics/library/src/test/java/io/opentelemetry/instrumentation/jmx/rules/JettyIntegrationTest.java
0 commit comments