com.zaxxer.hikari.metrics.prometheus.HikariCPCollector.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of HikariCP Show documentation
Show all versions of HikariCP Show documentation
Ultimate JDBC Connection Pool
???? 7 ?
( V W
V ' X Y Z [ a
' b c d a f g a i j a l m a o p a
r s t u t v w ' x
y } t ~
? ? ? ?
# ?
? ? ? ? LABEL_NAMES Ljava/util/List; Signature $Ljava/util/List; poolStatsMap Ljava/util/Map; HLjava/util/Map; ()V Code LineNumberTable LocalVariableTable this 8Lcom/zaxxer/hikari/metrics/prometheus/HikariCPCollector; collect ()Ljava/util/List; MetricFamilySamples InnerClasses H()Ljava/util/List; add :(Ljava/lang/String;Lcom/zaxxer/hikari/metrics/PoolStats;)V name Ljava/lang/String; poolStats %Lcom/zaxxer/hikari/metrics/PoolStats; remove (Ljava/lang/String;)V createGauge k(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)Lio/prometheus/client/GaugeMetricFamily; metric help metricValueFunction Ljava/util/function/Function; metricFamily (Lio/prometheus/client/GaugeMetricFamily; LocalVariableTypeTable WLjava/util/function/Function; ?(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)Lio/prometheus/client/GaugeMetricFamily; lambda$createGauge$0 (Lio/prometheus/client/GaugeMetricFamily;Ljava/util/function/Function;Ljava/lang/String;Lcom/zaxxer/hikari/metrics/PoolStats;)V k v
SourceFile HikariCPCollector.java 0 1 &java/util/concurrent/ConcurrentHashMap - . 2io/prometheus/client/Collector$MetricFamilySamples hikaricp_active_connections Active connections BootstrapMethods ? ? ? ? ? ? D E hikaricp_idle_connections Idle connections ? hikaricp_pending_threads Pending threads ? hikaricp_connections !The number of current connections ? hikaricp_max_connections Max connections ? hikaricp_min_connections Min connections ? ? ? ? ? ? ? B ? &io/prometheus/client/GaugeMetricFamily ) * 0 ? ? ? = ? ? ? ? ? ? ? ? ? ? java/lang/Integer ? ? ? ? pool 6com/zaxxer/hikari/metrics/prometheus/HikariCPCollector io/prometheus/client/Collector
? ? &(Ljava/lang/Object;)Ljava/lang/Object;
? ? :(Lcom/zaxxer/hikari/metrics/PoolStats;)Ljava/lang/Integer; apply ()Ljava/util/function/Function;
? ?
? ?
? ?
? ?
? ? java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List;
java/util/Map put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 7(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V '(Ljava/lang/Object;Ljava/lang/Object;)V
' ? accept f(Lio/prometheus/client/GaugeMetricFamily;Ljava/util/function/Function;)Ljava/util/function/BiConsumer; forEach "(Ljava/util/function/BiConsumer;)V java/util/Collections
singletonList $(Ljava/lang/Object;)Ljava/util/List; java/util/function/Function intValue ()I addMetric ;(Ljava/util/List;D)Lio/prometheus/client/GaugeMetricFamily; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? O P "java/lang/invoke/LambdaMetafactory metafactory ? Lookup ?(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; #com/zaxxer/hikari/metrics/PoolStats getActiveConnections getIdleConnections getPendingThreads getTotalConnections getMaxConnections getMinConnections ? %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles ' ( ) * + , - . + / 0 1 2 > *? *? Y? ? ? 3
# 4 5 6 7 8 2 ? i? Y*? ? SY*
? ? SY*
? ? SY*? ? SY*? ? SY*? ? S? ? 3 " ( ) ! + 1 - A / Q 1 a 3 e ( 4 i 5 6 + ; <