Skip to content

Commit ee7faec

Browse files
committed
Fixed tomcat.md
tomcat.request.processing_time changed to tomcat.request.duration.total
1 parent 299b35c commit ee7faec

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ rules:
2727
unit: s
2828
desc: The longest request processing time.
2929
processingTime:
30-
metric: request.processing_time
30+
metric: request.duration.total
3131
type: counter
3232
sourceUnit: ms
3333
unit: s
34-
desc: Total time for processing all requests.
34+
desc: Total time of processing all requests.
3535
bytesReceived:
3636
metric: &metric network.io
3737
type: &type counter

instrumentation/jmx-metrics/library/src/test/java/io/opentelemetry/instrumentation/jmx/rules/TomcatIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ private static MetricsVerifier createMetricsVerifier() {
8989
.isGauge()
9090
.hasDataPointsWithOneAttribute(requestProcessorNameAttribute))
9191
.add(
92-
"tomcat.request.processing_time",
92+
"tomcat.request.duration.total",
9393
metric ->
9494
metric
95-
.hasDescription("Total time for processing all requests.")
95+
.hasDescription("Total time of processing all requests.")
9696
.hasUnit("s")
9797
.isCounter()
9898
.hasDataPointsWithOneAttribute(requestProcessorNameAttribute))

instrumentation/jmx-metrics/library/tomcat.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
Here is the list of metrics based on MBeans exposed by Tomcat.
44

5-
| Metric Name | Type | Attributes | Description |
6-
|--------------------------------|---------------|-----------------------------------------------------|---------------------------------------------|
7-
| tomcat.active_session.count | UpDownCounter | tomcat.context | The number of active sessions. |
8-
| tomcat.error.count | Counter | tomcat.request_processor.name | The number of errors. |
9-
| tomcat.request.count | Counter | tomcat.request_processor.name | The number of requests processed. |
10-
| tomcat.request.duration.max | Gauge | tomcat.request_processor.name | The longest request processing time. |
11-
| tomcat.request.processing_time | Counter | tomcat.request_processor.name | Total time for processing all requests. |
12-
| tomcat.network.io | Counter | tomcat.request_processor.name, network.io.direction | The number of bytes transmitted. |
13-
| tomcat.thread.count | UpDownCounter | tomcat.thread_pool.name | Total thread count of the thread pool. |
14-
| tomcat.thread.busy.count | UpDownCounter | tomcat.thread_pool.name | Number of busy threads in the thread pool. |
5+
| Metric Name | Type | Attributes | Description |
6+
|-------------------------------|---------------|-----------------------------------------------------|--------------------------------------------|
7+
| tomcat.session.active.count | UpDownCounter | tomcat.context | The number of currently active sessions. |
8+
| tomcat.session.active.limit | UpDownCounter | tomcat.context | Maximum number of active sessions. |
9+
| tomcat.error.count | Counter | tomcat.request_processor.name | The number of errors. |
10+
| tomcat.request.count | Counter | tomcat.request_processor.name | The number of requests processed. |
11+
| tomcat.request.duration.max | Gauge | tomcat.request_processor.name | The longest request processing time. |
12+
| tomcat.request.duration.total | Counter | tomcat.request_processor.name | Total time of processing all requests. |
13+
| tomcat.network.io | Counter | tomcat.request_processor.name, network.io.direction | The number of bytes transmitted. |
14+
| tomcat.thread.count | UpDownCounter | tomcat.thread_pool.name | Total thread count of the thread pool. |
15+
| tomcat.thread.max | UpDownCounter | tomcat.thread_pool.name | Maximum thread count of the thread pool. |
16+
| tomcat.thread.busy.count | UpDownCounter | tomcat.thread_pool.name | Number of busy threads in the thread pool. |

0 commit comments

Comments
 (0)