com.zaxxer.hikari.metrics.prometheus.HikariCPCollector.class Maven / Gradle / Ivy
???? 4 ? 6com/zaxxer/hikari/metrics/prometheus/HikariCPCollector io/prometheus/client/Collector HikariCPCollector.java 2io/prometheus/client/Collector$MetricFamilySamples MetricFamilySamples %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup LABEL_NAMES Ljava/util/List; $Ljava/util/List; poolStatsMap Ljava/util/Map; HLjava/util/Map; ()V
&java/util/concurrent/ConcurrentHashMap
this 8Lcom/zaxxer/hikari/metrics/prometheus/HikariCPCollector; collect ()Ljava/util/List; H()Ljava/util/List; hikaricp_active_connections " Active connections $ &(Ljava/lang/Object;)Ljava/lang/Object; & #com/zaxxer/hikari/metrics/PoolStats ( getActiveConnections ()I * +
) , - :(Lcom/zaxxer/hikari/metrics/PoolStats;)Ljava/lang/Integer; / "java/lang/invoke/LambdaMetafactory 1 metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; 3 4
2 5 6 apply ()Ljava/util/function/Function; 8 9 : createGauge k(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)Lio/prometheus/client/GaugeMetricFamily; <