Counter
A Counter is a metric that only increases (monotonically), typically used for counting occurrences.
This implementation supports optional creation of a _created time series and allows for use with and without labels.
Parameters
fullName
The full name of the metric.
help
Help text describing what the counter measures.
labelNames
List of label names for this counter.
unit
The unit of the metric (e.g., "meters", "seconds").
includeCreatedSeries
If true, also emits a _created series per label set.
Types
Properties
Functions
Link copied to clipboard
Collects the current metric samples for this counter.
Link copied to clipboard
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.