Skip to content

Commit 8928bc0

Browse files
committed
change jvm.threads.count to jvm.thread.count to match semconv.
1 parent b92a465 commit 8928bc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/target_systems/JvmIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ protected MetricsVerifier createMetricsVerifier() {
170170
.isGauge()
171171
.hasDataPointsWithAttributes(memoryAttributes))
172172
.add(
173-
"jvm.threads.count",
173+
"jvm.thread.count",
174174
metric ->
175175
metric
176176
.hasDescription("number of threads")

jmx-scraper/src/main/resources/jvm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@ rules:
8686
- bean: java.lang:type=Threading
8787
mapping:
8888
ThreadCount:
89-
metric: jvm.threads.count
89+
metric: jvm.thread.count
9090
unit: "{thread}"
9191
desc: number of threads

0 commit comments

Comments
 (0)