CollectorRegistry class
A CollectorRegistry is used to manage Collectors. Own CollectorRegistry instances can be created, but a defaultRegistry is also provided.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
collectMetricFamilySamples(
) → Future< Iterable< MetricFamilySamples> > - Collect all metrics and samples from the registered Collectors.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
Collector collector) → void -
Register a Collector with the CollectorRegistry.
Does nothing if the
collector
is already registered. -
toString(
) → String -
A string representation of this object.
override
-
unregister(
Collector collector) → void - Unregister a Collector from the CollectorRegistry.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- defaultRegistry → CollectorRegistry
-
The default CollectorRegistry that can be used to register Collectors.
Most of the time, the defaultRegistry is sufficient.
final