Skip to content

Commit

Permalink
Labels.of() arguments fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Zielinski committed Oct 22, 2024
1 parent b4c99d7 commit 7af08ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private GaugeSnapshot createGauge(String metric, String help,
{
Collection<GaugeSnapshot.GaugeDataPointSnapshot> gaugeDataPointSnapshots = new ArrayList<>();
poolStatsMap.forEach((k, v) -> gaugeDataPointSnapshots.add(
new GaugeSnapshot.GaugeDataPointSnapshot(metricValueFunction.apply(v), Labels.of(k), null)
new GaugeSnapshot.GaugeDataPointSnapshot(metricValueFunction.apply(v), Labels.of("pool", k), null)
));
return new GaugeSnapshot(new MetricMetadata(metric, help), gaugeDataPointSnapshots);
}
Expand Down

0 comments on commit 7af08ed

Please sign in to comment.