Metric

org.llm4s.metrics.Metric
See theMetric companion trait
@Experimental
object Metric

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Metric.type

Members list

Type members

Classlikes

final case class Counter extends Metric

A count that only grows: MetricsCollector.increment.

A count that only grows: MetricsCollector.increment.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Metric
class Object
trait Matchable
class Any
Show all
final case class Gauge extends Metric

A value that goes up and down, set to its latest reading: MetricsCollector.set.

A value that goes up and down, set to its latest reading: MetricsCollector.set.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Metric
class Object
trait Matchable
class Any
Show all
final case class Timer extends Metric

A distribution of durations: MetricsCollector.observe. buckets are the histogram's upper bounds, ascending, as a Prometheus backend exposes them (le) and a Micrometer backend publishes them (service-level objectives).

A distribution of durations: MetricsCollector.observe. buckets are the histogram's upper bounds, ascending, as a Prometheus backend exposes them (le) and a Micrometer backend publishes them (service-level objectives).

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Metric
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def counter(name: String, help: String, labelNames: String*): Counter

A counter; throws IllegalArgumentException for an invalid name or label name.

A counter; throws IllegalArgumentException for an invalid name or label name.

Attributes

def gauge(name: String, help: String, labelNames: String*): Gauge

A gauge; throws IllegalArgumentException for an invalid name or label name.

A gauge; throws IllegalArgumentException for an invalid name or label name.

Attributes

def timer(name: String, help: String, buckets: Seq[FiniteDuration], labelNames: String*): Timer

A timer with buckets as its upper bounds; throws IllegalArgumentException for an invalid one.

A timer with buckets as its upper bounds; throws IllegalArgumentException for an invalid one.

Attributes