CollectorRegistry class Null safety

A CollectorRegistry is used to manage Collectors. Own CollectorRegistry instances can be created, but a defaultRegistry is also provided.

Constructors

CollectorRegistry()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

collectMetricFamilySamples() Future<Iterable<MetricFamilySamples>>
Collect all metrics and samples from the registered Collectors.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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