formatting

pull/2223/head
Krzysztof Zielinski 4 days ago
parent 9e1206f690
commit 4d86b75675

@ -38,7 +38,6 @@
<maven.release.version>3.0.1</maven.release.version>
<metrics.version>3.2.5</metrics.version>
<metrics5.version>5.0.0-rc17</metrics5.version>
<!-- 1.5.10-->
<micrometer.version>1.13.2</micrometer.version>
<prometheus-metrics.version>1.3.1</prometheus-metrics.version>
<mockito.version>3.7.7</mockito.version>
@ -127,7 +126,7 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.27.1</version>
<version>[1.26.0,)</version>
<scope>test</scope>
</dependency>
<dependency>
@ -203,14 +202,7 @@
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics5</groupId>
<artifactId>metrics-core</artifactId>
<version>${metrics5.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<dependency>
<groupId>io.dropwizard.metrics5</groupId>
<artifactId>metrics-core</artifactId>
<version>${metrics5.version}</version>

@ -16,20 +16,22 @@
package com.zaxxer.hikari.metrics.prometheus;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Function;
import com.zaxxer.hikari.metrics.PoolStats;
import io.prometheus.metrics.model.registry.MultiCollector;
import io.prometheus.metrics.model.snapshots.GaugeSnapshot;
import io.prometheus.metrics.model.snapshots.Labels;
import io.prometheus.metrics.model.snapshots.MetricMetadata;
import io.prometheus.metrics.model.snapshots.MetricSnapshots;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Function;
class HikariCPCollector implements MultiCollector
{
private static final List<String> LABEL_NAMES = Collections.singletonList("pool");
class HikariCPCollector implements MultiCollector {
private final Map<String, PoolStats> poolStatsMap = new ConcurrentHashMap<>();

Loading…
Cancel
Save