Uses of Class
io.prometheus.metrics.model.snapshots.MetricSnapshot
Package
Description
-
Uses of MetricSnapshot in io.prometheus.metrics.core.metrics
-
Uses of MetricSnapshot in io.prometheus.metrics.expositionformats
Modifier and TypeMethodDescriptionvoid
PrometheusTextFormatWriter.writeCreated
(OutputStreamWriter writer, MetricSnapshot snapshot) -
Uses of MetricSnapshot in io.prometheus.metrics.expositionformats.internal
Modifier and TypeMethodDescriptionMetrics.MetricFamily
PrometheusProtobufWriterImpl.convert
(MetricSnapshot snapshot) -
Uses of MetricSnapshot in io.prometheus.metrics.model.registry
Modifier and TypeMethodDescriptionCollector.collect()
Called when the Prometheus server scrapes metrics.default MetricSnapshot
Collector.collect
(PrometheusScrapeRequest scrapeRequest) Provides Collector with the details of the request issued by Prometheus to allow multi-target pattern implementation Override to implement request dependent logic to provide MetricSnapshotdefault MetricSnapshot
default MetricSnapshot
Collector.collect
(Predicate<String> includedNames, PrometheusScrapeRequest scrapeRequest) LikeCollector.collect(Predicate)
, but with support for multi-target pattern. -
Uses of MetricSnapshot in io.prometheus.metrics.model.snapshots
Modifier and TypeClassDescriptionclass
Immutable snapshot of a Counter.final class
Immutable snapshot of a Gauge.final class
Immutable snapshot of a Histogram.final class
Immutable snapshot of an Info metric.final class
Immutable snapshot of a StateSet metric.final class
Immutable snapshot of a Summary metric.final class
Immutable snapshot of an Unknown (Untyped) metric.Modifier and TypeMethodDescriptionabstract MetricSnapshot
MetricSnapshot.Builder.build()
MetricSnapshots.get
(int i) Modifier and TypeMethodDescriptionMetricSnapshots.Builder.metricSnapshot
(MetricSnapshot snapshot) Add a metric snapshot.static MetricSnapshots
MetricSnapshots.of
(MetricSnapshot... snapshots) ModifierConstructorDescriptionMetricSnapshots
(Collection<MetricSnapshot> snapshots) To create MetricSnapshots, you can either call the constructor directly or useMetricSnapshots.builder()
.