Uses of Class
io.prometheus.metrics.model.snapshots.Exemplar
-
Uses of Exemplar in io.prometheus.metrics.model.snapshots
Modifier and TypeMethodDescriptionExemplar.Builder.build()
Exemplars.get
(double lowerBound, double upperBound) This is used by classic histograms to find an exemplar with a value between lowerBound and upperBound.Exemplars.get
(int index) CounterSnapshot.CounterDataPointSnapshot.getExemplar()
May benull
.GaugeSnapshot.GaugeDataPointSnapshot.getExemplar()
May benull
.UnknownSnapshot.UnknownDataPointSnapshot.getExemplar()
May returnnull
.Exemplars.getLatest()
Find the Exemplar with the newest timestamp.Modifier and TypeMethodDescriptionAdd an exemplar.OptionalOptionalstatic Exemplars
Create a new Exemplars instance.Modifier and TypeMethodDescriptionExemplars.Builder.exemplars
(Collection<Exemplar> exemplars) Add all exemplars form the collection.static Exemplars
Exemplars.of
(Collection<Exemplar> exemplars) Create a new Exemplars instance.ModifierConstructorDescriptionCounterDataPointSnapshot
(double value, Labels labels, Exemplar exemplar, long createdTimestampMillis) To create a newCounterSnapshot.CounterDataPointSnapshot
, you can either call the constructor directly or use the Builder withCounterSnapshot.CounterDataPointSnapshot.builder()
.CounterDataPointSnapshot
(double value, Labels labels, Exemplar exemplar, long createdTimestampMillis, long scrapeTimestampMillis) Constructor with an additional scrape timestamp.GaugeDataPointSnapshot
(double value, Labels labels, Exemplar exemplar) To create a newGaugeSnapshot.GaugeDataPointSnapshot
, you can either call the constructor directly or use the Builder withGaugeSnapshot.GaugeDataPointSnapshot.builder()
.GaugeDataPointSnapshot
(double value, Labels labels, Exemplar exemplar, long scrapeTimestampMillis) Constructor with an additional scrape timestamp.UnknownDataPointSnapshot
(double value, Labels labels, Exemplar exemplar) To create a newUnknownSnapshot.UnknownDataPointSnapshot
, you can either call the constructor directly or use the Builder withUnknownSnapshot.UnknownDataPointSnapshot.builder()
.UnknownDataPointSnapshot
(double value, Labels labels, Exemplar exemplar, long scrapeTimestampMillis) Constructor with an additional scrape timestamp.