Names

org.llm4s.metrics.MicrometerMetrics.Names
object Names

The meter names, as given to Micrometer. With the Prometheus naming convention a counter gains _total and a timer gains _seconds, which is how llm4s.requests becomes llm4s_requests_total.

Attributes

Source
MicrometerMetrics.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Names.type

Members list

Value members

Concrete fields

ReliabilityMetrics.CircuitBreakerTransitions: counter of circuit-breaker transitions. Tags: provider, state (open, closed or half-open).

ReliabilityMetrics.CircuitBreakerTransitions: counter of circuit-breaker transitions. Tags: provider, state (open, closed or half-open).

Attributes

Source
MicrometerMetrics.scala
final val CostUsd: "llm4s.cost.usd"

Counter of estimated cost in USD. Tags: provider, model.

Counter of estimated cost in USD. Tags: provider, model.

Attributes

Source
MicrometerMetrics.scala
val Errors: String

Counter of failed requests, and of what a module adds through MetricsCollector.Errors (a failed image generation), as llm4s_errors_total in the Prometheus module. It is that metric's name. Tags: provider, error_type (see ErrorKind, in snake case). ReliableClient's own errors are not counted here; see ReliabilityErrors.

Counter of failed requests, and of what a module adds through MetricsCollector.Errors (a failed image generation), as llm4s_errors_total in the Prometheus module. It is that metric's name. Tags: provider, error_type (see ErrorKind, in snake case). ReliableClient's own errors are not counted here; see ReliabilityErrors.

Attributes

Source
MicrometerMetrics.scala

ReliabilityMetrics.Errors: errors ReliableClient reports outside a timed request - a call rejected by its local rate limit or its open circuit, a deadline exceeded, and the final failure once retries are exhausted. Kept apart from Errors, which already counts each failed attempt the provider client observed, so neither counts a failure twice. Tags: provider, error_type.

ReliabilityMetrics.Errors: errors ReliableClient reports outside a timed request - a call rejected by its local rate limit or its open circuit, a deadline exceeded, and the final failure once retries are exhausted. Kept apart from Errors, which already counts each failed attempt the provider client observed, so neither counts a failure twice. Tags: provider, error_type.

Attributes

Source
MicrometerMetrics.scala
final val RequestDuration: "llm4s.request.duration"

Timer with the same buckets as llm4s_request_duration_seconds. Tags: provider, model.

Timer with the same buckets as llm4s_request_duration_seconds. Tags: provider, model.

Attributes

Source
MicrometerMetrics.scala
final val Requests: "llm4s.requests"

Counter. Tags: provider, model, status (success or error_<kind>).

Counter. Tags: provider, model, status (success or error_<kind>).

Attributes

Source
MicrometerMetrics.scala

ReliabilityMetrics.Retries: counter of retry attempts. Tags: provider.

ReliabilityMetrics.Retries: counter of retry attempts. Tags: provider.

Attributes

Source
MicrometerMetrics.scala
final val Tokens: "llm4s.tokens"

Counter of tokens. Tags: provider, model, type (input or output).

Counter of tokens. Tags: provider, model, type (input or output).

Attributes

Source
MicrometerMetrics.scala