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()protected abstract MetricSnapshotlabels and metricData have the same size. -
Uses of MetricSnapshot in io.prometheus.metrics.expositionformats
Methods in io.prometheus.metrics.expositionformats that return MetricSnapshotModifier and TypeMethodDescriptionprivate static MetricSnapshotTextFormatUtil.mergeSnapshots(List<MetricSnapshot> snapshots) Merges multiple snapshots of the same type into a single snapshot with combined data points.Methods in io.prometheus.metrics.expositionformats with parameters of type MetricSnapshotModifier and TypeMethodDescriptionvoidPrometheusTextFormatWriter.writeCreated(Writer writer, MetricSnapshot snapshot, EscapingScheme scheme) Method parameters in io.prometheus.metrics.expositionformats with type arguments of type MetricSnapshotModifier and TypeMethodDescriptionprivate static MetricSnapshotTextFormatUtil.mergeSnapshots(List<MetricSnapshot> snapshots) Merges multiple snapshots of the same type into a single snapshot with combined data points. -
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.Fields in io.prometheus.metrics.model.snapshots with type parameters of type MetricSnapshotModifier and TypeFieldDescriptionprivate final List<MetricSnapshot>MetricSnapshots.Builder.snapshotsprivate final List<MetricSnapshot>MetricSnapshots.snapshotsMethods in io.prometheus.metrics.model.snapshots that return MetricSnapshotModifier and TypeMethodDescriptionabstract MetricSnapshotMetricSnapshot.Builder.build()(package private) MetricSnapshotCounterSnapshot.escape(EscapingScheme escapingScheme, List<? extends DataPointSnapshot> dataPointSnapshots) (package private) MetricSnapshotGaugeSnapshot.escape(EscapingScheme escapingScheme, List<? extends DataPointSnapshot> dataPointSnapshots) (package private) MetricSnapshotHistogramSnapshot.escape(EscapingScheme escapingScheme, List<? extends DataPointSnapshot> dataPointSnapshots) (package private) MetricSnapshotInfoSnapshot.escape(EscapingScheme escapingScheme, List<? extends DataPointSnapshot> dataPointSnapshots) (package private) abstract MetricSnapshotMetricSnapshot.escape(EscapingScheme escapingScheme, List<? extends DataPointSnapshot> dataPointSnapshots) (package private) MetricSnapshotStateSetSnapshot.escape(EscapingScheme escapingScheme, List<? extends DataPointSnapshot> dataPointSnapshots) (package private) MetricSnapshotSummarySnapshot.escape(EscapingScheme escapingScheme, List<? extends DataPointSnapshot> dataPointSnapshots) (package private) MetricSnapshotUnknownSnapshot.escape(EscapingScheme escapingScheme, List<? extends DataPointSnapshot> dataPointSnapshots) 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().