Skip to content

Commit 7f5ad1b

Browse files
committed
align gc label name with opentelemetry spec
Signed-off-by: gniadeck <77535280+gniadeck@users.noreply.github.com>
1 parent b732151 commit 7f5ad1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus-metrics-instrumentation-jvm/src/main/java/io/prometheus/metrics/instrumentation/jvm/JvmGarbageCollectorMetrics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private void registerGCDurationHistogram(PrometheusRegistry registry) {
8484
.name(JVM_GC_DURATION_SECONDS)
8585
.help("JVM GC pause duration histogram.")
8686
.unit(Unit.SECONDS)
87-
.labelNames("gc", "action", "cause")
87+
.labelNames("name", "action", "cause")
8888
.classicUpperBounds(buckets)
8989
.register(registry);
9090

0 commit comments

Comments
 (0)