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 MetricSnapshotModifier and TypeMethodDescriptionabstract MetricSnapshotMetric.collect()StatefulMetric.collect() -
Uses of MetricSnapshot in io.prometheus.metrics.expositionformats
Methods in io.prometheus.metrics.expositionformats with parameters of type MetricSnapshotModifier and TypeMethodDescriptionvoidPrometheusTextFormatWriter.writeCreated(Writer writer, MetricSnapshot snapshot, EscapingScheme scheme) -
Uses of MetricSnapshot in io.prometheus.metrics.expositionformats.internal
Methods in io.prometheus.metrics.expositionformats.internal with parameters of type MetricSnapshotModifier and TypeMethodDescriptionMetrics.MetricFamilyPrometheusProtobufWriterImpl.convert(MetricSnapshot snapshot, EscapingScheme scheme) -
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 MetricSnapshotCollector.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 MetricSnapshotdefault MetricSnapshotCollector.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 TypeClassDescriptionclassImmutable snapshot of a Counter.final classImmutable snapshot of a Gauge.final classImmutable snapshot of a Histogram.final classImmutable snapshot of an Info metric.final classImmutable snapshot of a StateSet metric.final classImmutable snapshot of a Summary metric.final classImmutable snapshot of an Unknown (Untyped) metric.Classes in io.prometheus.metrics.model.snapshots that implement interfaces with type arguments of type MetricSnapshotMethods in io.prometheus.metrics.model.snapshots that return MetricSnapshotModifier and TypeMethodDescriptionabstract MetricSnapshotMetricSnapshot.Builder.build()static MetricSnapshotSnapshotEscaper.escapeMetricSnapshot(MetricSnapshot v, EscapingScheme scheme) Escapes the given metric names and labels with the given escaping scheme.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 TypeMethodDescriptionstatic MetricSnapshotSnapshotEscaper.escapeMetricSnapshot(MetricSnapshot v, EscapingScheme scheme) Escapes the given metric names and labels with the given escaping scheme.MetricSnapshots.Builder.metricSnapshot(MetricSnapshot snapshot) Add a metric snapshot.static MetricSnapshotsMetricSnapshots.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().