Gauge
A Gauge is a metric that represents a single numerical value that can go up and down.
Parameters
fullName
Full name of the metric.
help
Description of what the metric measures.
labelNames
List of label names.
unit
Optional unit of measurement.
clock
Clock used to set the current time as gauge value.
Types
Properties
Functions
Link copied to clipboard
Collects all current samples from this gauge, across all label sets.
Link copied to clipboard
Returns the simple class name of the Collector instance.
Link copied to clipboard
Retrieves or creates a Child associated with the given label values.
Link copied to clipboard
Creates a new child instance. Called internally when a new label set is first seen.
Link copied to clipboard
Registers this collector in the given CollectorRegistry.
Link copied to clipboard
Measures the duration of a block and stores it in the unlabeled gauge.
Link copied to clipboard
Sets the unlabeled gauge to the current Unix time in seconds.