Class MetricWithFixedMetadata

Object
Metric
MetricWithFixedMetadata
All Implemented Interfaces:
Collector
Direct Known Subclasses:
Counter, CounterWithCallback, Gauge, GaugeWithCallback, Histogram, Info, StateSet, Summary, SummaryWithCallback

public abstract class MetricWithFixedMetadata extends Metric
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.