Module io.prometheus.metrics.core
Class MetricWithFixedMetadata
java.lang.Object
io.prometheus.metrics.core.metrics.Metric
io.prometheus.metrics.core.metrics.MetricWithFixedMetadata
- All Implemented Interfaces:
io.prometheus.metrics.model.registry.Collector
- Direct Known Subclasses:
Counter,CounterWithCallback,Gauge,GaugeWithCallback,Histogram,Info,StateSet,Summary,SummaryWithCallback
Almost all metrics have fixed metadata, i.e. the metric name is known when the metric is created.
An exception would be a metric that is a bridge to a 3rd party metric library, where the metric name has to be retrieved from the 3rd party metric library at scrape time.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMetricWithFixedMetadata.Builder<B extends MetricWithFixedMetadata.Builder<B,M>, M extends MetricWithFixedMetadata> -
Field Summary
FieldsFields inherited from class io.prometheus.metrics.core.metrics.Metric
constLabels -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMetricWithFixedMetadata(MetricWithFixedMetadata.Builder<?, ?> builder) -
Method Summary
Modifier and TypeMethodDescriptionprotected io.prometheus.metrics.model.snapshots.MetricMetadataMethods 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
-
Field Details
-
labelNames
-
-
Constructor Details
-
MetricWithFixedMetadata
-
-
Method Details
-
getMetadata
protected io.prometheus.metrics.model.snapshots.MetricMetadata getMetadata() -
getPrometheusName
-