Package-level declarations
Types
A thread-safe registry for Collector instances.
A Counter is a metric that only increases (monotonically), typically used for counting occurrences.
Builder class for creating Counter metrics.
A Gauge is a metric that represents a single numerical value that can go up and down.
Builder class for creating Gauge metrics.
A histogram metric that tracks the distribution of values over a set of buckets.
Builder class for creating Histogram metrics.
Base class for building SimpleCollector instances with a fluent and idiomatic DSL.
Exports Prometheus metrics from a CollectorRegistry in the Prometheus text exposition format.
A Prometheus text format encoder (version 0.0.4).
A Summary is a metric that provides statistical information about observed values, including quantiles.
Builder class for creating Summary metrics.
Represents the current state of a histogram, including the sum of observed values, the cumulative counts for each bucket, and the creation timestamp.
Functions
DSL-style function to build and register a Counter using a CounterBuilder.
Executes the given block and increments the counter if an exception of the specified types is thrown.
Ensures a given string is surrounded by double quotes, correcting partial quotes.
Creates a histogram with exponentially spaced buckets.
DSL-style function to build and register a Gauge using a GaugeBuilder.
Returns the simple class name of the Collector instance.
Returns the current Unix timestamp in milliseconds from the given Clock.
Returns the current Unix timestamp in seconds from the given Clock.
A DSL-style function to create and register a Histogram using a HistogramBuilder. Creates a histogram with the specified name and configuration defined in the block.
Creates a histogram with predefined buckets.
Creates a histogram with linearly spaced buckets.
Creates a quantile for use in summaries.
Converts a variable number of quantiles into a list.
Measures the duration of a block and stores it in the unlabeled gauge.
Measures the duration of a block and stores it in the labeled Gauge.Child.
Creates a summary with predefined quantiles.
Increments the unlabeled gauge while the block is running, and decrements it when the block completes.
Increments the labeled gauge while the block is running, and decrements it when the block completes.