Uses of Class
io.prometheus.metrics.model.snapshots.MetricSnapshot
Packages that use MetricSnapshot
Package
Description
-
Uses of MetricSnapshot in io.prometheus.metrics.core.metrics
Methods in io.prometheus.metrics.core.metrics that return MetricSnapshot -
Uses of MetricSnapshot in io.prometheus.metrics.expositionformats
Methods in io.prometheus.metrics.expositionformats with parameters of type MetricSnapshotModifier and TypeMethodDescriptionvoid
PrometheusTextFormatWriter.writeCreated
(Writer writer, MetricSnapshot snapshot) -
Uses of MetricSnapshot in io.prometheus.metrics.expositionformats.internal
Methods in io.prometheus.metrics.expositionformats.internal with parameters of type MetricSnapshotModifier and TypeMethodDescriptionMetrics.MetricFamily
PrometheusProtobufWriterImpl.convert
(MetricSnapshot snapshot) -
Uses of MetricSnapshot in io.prometheus.metrics.model.registry
Methods in io.prometheus.metrics.model.registry that return MetricSnapshotModifier 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
Subclasses of MetricSnapshot in io.prometheus.metrics.model.snapshotsModifier 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.Methods in io.prometheus.metrics.model.snapshots that return MetricSnapshotModifier and TypeMethodDescriptionabstract MetricSnapshot
MetricSnapshot.Builder.build()
MetricSnapshots.get
(int i) Methods in io.prometheus.metrics.model.snapshots that return types with arguments of type MetricSnapshotMethods in io.prometheus.metrics.model.snapshots with parameters of type MetricSnapshotModifier and TypeMethodDescriptionMetricSnapshots.Builder.metricSnapshot
(MetricSnapshot snapshot) Add a metric snapshot.static MetricSnapshots
MetricSnapshots.of
(MetricSnapshot... snapshots) Constructors in io.prometheus.metrics.model.snapshots with parameters of type MetricSnapshotConstructor parameters in io.prometheus.metrics.model.snapshots with type arguments of type MetricSnapshotModifierConstructorDescriptionMetricSnapshots
(Collection<MetricSnapshot> snapshots) To create MetricSnapshots, you can either call the constructor directly or useMetricSnapshots.builder()
.