Skip to content

Commit 7af08ed

Browse files
author
Krzysztof Zielinski
committed
Labels.of() arguments fix
1 parent b4c99d7 commit 7af08ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/zaxxer/hikari/metrics/prometheus/HikariCPCollector.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private GaugeSnapshot createGauge(String metric, String help,
6666
{
6767
Collection<GaugeSnapshot.GaugeDataPointSnapshot> gaugeDataPointSnapshots = new ArrayList<>();
6868
poolStatsMap.forEach((k, v) -> gaugeDataPointSnapshots.add(
69-
new GaugeSnapshot.GaugeDataPointSnapshot(metricValueFunction.apply(v), Labels.of(k), null)
69+
new GaugeSnapshot.GaugeDataPointSnapshot(metricValueFunction.apply(v), Labels.of("pool", k), null)
7070
));
7171
return new GaugeSnapshot(new MetricMetadata(metric, help), gaugeDataPointSnapshots);
7272
}

0 commit comments

Comments
 (0)