Skip to content

Commit b5fdd29

Browse files
committed
tomcat.request.duration.total -> tomcat.request.duration.sum
1 parent 5bdbabd commit b5fdd29

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ rules:
2727
unit: s
2828
desc: The longest request processing time.
2929
processingTime:
30-
metric: request.duration.total
30+
metric: request.duration.sum
3131
type: counter
3232
sourceUnit: ms
3333
unit: s

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private static MetricsVerifier createMetricsVerifier() {
8989
.isGauge()
9090
.hasDataPointsWithOneAttribute(requestProcessorNameAttribute))
9191
.add(
92-
"tomcat.request.duration.total",
92+
"tomcat.request.duration.sum",
9393
metric ->
9494
metric
9595
.hasDescription("Total time of processing all requests.")

instrumentation/jmx-metrics/library/tomcat.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +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.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. |
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.sum | 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)