Class Metric
java.lang.Object
io.prometheus.metrics.core.metrics.Metric
- All Implemented Interfaces:
Collector
- Direct Known Subclasses:
MetricWithFixedMetadata
-
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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collector
collect, collect, collect, getLabelNames, getMetadata, getMetricType, getPrometheusName