Class Metric
java.lang.Object
io.prometheus.metrics.core.metrics.Metric
- All Implemented Interfaces:
Collector
- Direct Known Subclasses:
MetricWithFixedMetadata
Common base class for all metrics.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classMetric.Builder<B extends Metric.Builder<B,M>, M extends Metric> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MetricSnapshotcollect()Called when the Prometheus server scrapes metrics.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.prometheus.metrics.model.registry.Collector
collect, collect, collect, getLabelNames, getMetadata, getMetricType, getPrometheusName