package prometheus2
- Alphabetic
- By Inheritance
- prometheus2
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait Buckets extends AnyRef
- trait Counter extends AnyRef
- trait Gauge extends TimerMetric
- trait Histogram extends TimerMetric
- sealed trait LabelList extends Product with Serializable
A list of strings whose size is statically known.
A list of strings whose size is statically known.
This is used to have strongly typed labelled metrics.
Inspired by shapeless
HList
. - trait LabelledMetric[R, E, M] extends AnyRef
Helper to create strongly typed Prometheus labelled metrics.
Helper to create strongly typed Prometheus labelled metrics.
Metrics are defined with a list of labels whose length is statically known. Operations on the metric (increment a counter for instance), require to pass a list of label values with the same length.
- trait LabelledMetricP[R, E, P, M] extends AnyRef
Helper to create strongly typed Prometheus labelled metrics.
Helper to create strongly typed Prometheus labelled metrics.
Metrics are defined with a list of labels whose length is statically known. Operations on the metric (increment a counter for instance), require to pass a list of label values with the same length.
- final case class Quantile(percentile: Double, tolerance: Double) extends Product with Serializable
- type Registry = Service
- trait Summary extends TimerMetric
- trait Timer extends AnyRef
- trait TimerMetric extends AnyRef
Value Members
- def collect: RIO[Registry, Enumeration[MetricFamilySamples]]
- def collectorRegistry: RIO[Registry, CollectorRegistry]
- def string004: RIO[Registry, String]
- def updateRegistry[A](f: (CollectorRegistry) => Task[A]): RIO[Registry, A]
- object Buckets
- object Counter extends LabelledMetric[Registry, Throwable, Counter]
- object Gauge extends LabelledMetric[Registry, Throwable, Gauge]
- object Histogram extends LabelledMetricP[Registry, Throwable, Buckets, Histogram]
- object LabelList extends Serializable
- object Registry
- object Summary extends LabelledMetricP[Registry, Throwable, List[Quantile], Summary]
- object example