io.chrisdavenport.epimetheus
Gauge metric, to report instantaneous values.
Gauges can go both up and down.
An Example With No Labels:
for { cr <- CollectorRegistry.build gauge <- Gauge.noLabels(cr, "gauge_value", "Gauge Help") _ <- gauge.inc _ <- gauge.dec } yield ()
An Example With Labels:
for { cr <- CollectorRegistry.build gauge <- Gauge.labelled(cr, "gauge_value", "Gauge Help", Sized("foo"), {s: String => Sized(s)}) _ <- gauge.label("bar").inc _ <- gauge.label("bar").dec _ <- gauge.label("baz").inc _ <- gauge.label("baz").dec
These can be aggregated and processed together much more easily in the Prometheus server than individual metrics for each labelset.
Gauge metric, to report instantaneous values.
Gauges can go both up and down.
An Example With No Labels:
An Example With Labels:
These can be aggregated and processed together much more easily in the Prometheus server than individual metrics for each labelset.