com.zaxxer.hikari.metrics.prometheus.PrometheusMetricsTracker.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 ?
H ?
G ? G ? G ? G ? ?
? ? ? G ? G ?
? ? ? G ? G ? G ? G ? G ? G ? S ? ? ?
? ?
? ?
?
?
? ?
? ? ?
?
??? ????????
???ffffff??z?G?{??z?G??PbM??? ? ?
? ?
?
?
?
? ?
? ?
? ?
? ? ?
9 ? ?
9 ? ?
9 ?
9 ? ? ?
G ? ? ? ? ? ?
E ? ? ? ? CONNECTION_TIMEOUT_COUNTER Lio/prometheus/client/Counter; ELAPSED_ACQUIRED_SUMMARY Lio/prometheus/client/Summary; ELAPSED_USAGE_SUMMARY ELAPSED_CREATION_SUMMARY registrationStatuses Ljava/util/Map; Signature ? RegistrationStatus InnerClasses ?Ljava/util/Map; poolName Ljava/lang/String; hikariCPCollector 8Lcom/zaxxer/hikari/metrics/prometheus/HikariCPCollector; connectionTimeoutCounterChild Child $Lio/prometheus/client/Counter$Child; elapsedAcquiredSummaryChild $Lio/prometheus/client/Summary$Child; elapsedUsageSummaryChild elapsedCreationSummaryChild u(Ljava/lang/String;Lio/prometheus/client/CollectorRegistry;Lcom/zaxxer/hikari/metrics/prometheus/HikariCPCollector;)V Code LineNumberTable LocalVariableTable this ?Lcom/zaxxer/hikari/metrics/prometheus/PrometheusMetricsTracker; collectorRegistry (Lio/prometheus/client/CollectorRegistry; registerMetrics +(Lio/prometheus/client/CollectorRegistry;)V
StackMapTable recordConnectionAcquiredNanos (J)V elapsedAcquiredNanos J recordConnectionUsageMillis elapsedBorrowedMillis recordConnectionCreatedMillis connectionCreatedMillis recordConnectionTimeout ()V
createSummary D(Ljava/lang/String;Ljava/lang/String;)Lio/prometheus/client/Summary; name help close
SourceFile PrometheusMetricsTracker.java b w k l W X Y Z J K java/lang/String ? ? ? "io/prometheus/client/Counter$Child [ ] L M ? "io/prometheus/client/Summary$Child ^ _ N M ` _ O M a _ P Q ? ? ? ? ? ? ? ? ? ? w ? ? z ? $io/prometheus/client/Summary$Builder Builder pool ? ? { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? !hikaricp_connection_timeout_total $io/prometheus/client/Counter$Builder Connection timeout total count ? ? "hikaricp_connection_acquired_nanos Connection acquired time (ns) x y hikaricp_connection_usage_millis Connection usage (ms) #hikaricp_connection_creation_millis Connection creation (ms) &java/util/concurrent/ConcurrentHashMap =com/zaxxer/hikari/metrics/prometheus/PrometheusMetricsTracker java/lang/Object )com/zaxxer/hikari/metrics/IMetricsTracker ? Wcom/zaxxer/hikari/metrics/prometheus/PrometheusMetricsTrackerFactory$RegistrationStatus io/prometheus/client/Counter labels '([Ljava/lang/String;)Ljava/lang/Object; io/prometheus/client/Summary
REGISTERED YLcom/zaxxer/hikari/metrics/prometheus/PrometheusMetricsTrackerFactory$RegistrationStatus;
java/util/Map putIfAbsent 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; register J(Lio/prometheus/client/CollectorRegistry;)Lio/prometheus/client/Collector; observe (D)V inc build (()Lio/prometheus/client/Summary$Builder; ? B(Ljava/lang/String;)Lio/prometheus/client/SimpleCollector$Builder;
labelNames C([Ljava/lang/String;)Lio/prometheus/client/SimpleCollector$Builder; quantile *(DD)Lio/prometheus/client/Summary$Builder; java/util/concurrent/TimeUnit MINUTES Ljava/util/concurrent/TimeUnit; toSeconds (J)J
maxAgeSeconds )(J)Lio/prometheus/client/Summary$Builder;
ageBuckets )(I)Lio/prometheus/client/Summary$Builder; create ()Lio/prometheus/client/Summary; 6com/zaxxer/hikari/metrics/prometheus/HikariCPCollector remove (Ljava/lang/String;)V ([Ljava/lang/String;)V (()Lio/prometheus/client/Counter$Builder; ()Lio/prometheus/client/Counter; Dcom/zaxxer/hikari/metrics/prometheus/PrometheusMetricsTrackerFactory ? ,io/prometheus/client/SimpleCollector$Builder $io/prometheus/client/SimpleCollector G H I J K L M N M O M P Q R V W X Y Z [ ] ^ _ ` _ a _ b c d ? h*? *,? *+? *-? *? ? Y+S? ? ? *?
? Y+S? ? ?
*? ? Y+S? ? ? *? ? Y+S? ? ? ? e &