Skip to content

Commit 7c4afcb

Browse files
committed
tomcat.request_processor.name -> tomcat.request.processor.name
1 parent c3248f1 commit 7c4afcb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
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
@@ -8,7 +8,7 @@ rules:
88
- Tomcat:type=GlobalRequestProcessor,name=*
99
prefix: tomcat.
1010
metricAttribute:
11-
tomcat.request_processor.name: param(name)
11+
tomcat.request.processor.name: param(name)
1212
mapping:
1313
errorCount:
1414
metric: error.count

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
@@ -59,7 +59,7 @@ void testCollectedMetrics(String dockerImageName, String sampleWebApplicationUrl
5959

6060
private static MetricsVerifier createMetricsVerifier() {
6161
AttributeMatcher requestProcessorNameAttribute =
62-
attribute("tomcat.request_processor.name", "\"http-nio-8080\"");
62+
attribute("tomcat.request.processor.name", "\"http-nio-8080\"");
6363
AttributeMatcher threadPoolNameAttribute =
6464
attribute("tomcat.thread.pool.name", "\"http-nio-8080\"");
6565

instrumentation/jmx-metrics/library/tomcat.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ Here is the list of metrics based on MBeans exposed by Tomcat.
66
|-----------------------------|---------------|-----------------------------------------------------|--------------------------------------------|
77
| tomcat.session.active.count | UpDownCounter | tomcat.context | The number of currently active sessions. |
88
| 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. |
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. |
1414
| tomcat.thread.count | UpDownCounter | tomcat.thread.pool.name | Total thread count of the thread pool. |
1515
| tomcat.thread.max | UpDownCounter | tomcat.thread.pool.name | Maximum thread count of the thread pool. |
1616
| tomcat.thread.busy.count | UpDownCounter | tomcat.thread.pool.name | Number of busy threads in the thread pool. |

0 commit comments

Comments
 (0)