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

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Names.type

Members list

Value members

Concrete fields

final val CircuitBreakerTransitions: "llm4s.circuit.breaker.transitions"

Counter of circuit-breaker transitions (not in the Prometheus module). Tags: provider, state (open, closed, half-open or other).

Counter of circuit-breaker transitions (not in the Prometheus module). Tags: provider, state (open, closed, half-open or other).

Attributes

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

final val Errors: "llm4s.errors"

Counter. Tags: provider, error_type (see ErrorKind, in snake case).

Counter. Tags: provider, error_type (see ErrorKind, in snake case).

Attributes

final val ImageGenerationCostUsd: "llm4s.image.generation.cost.usd"

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

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

Attributes

final val ImageGenerationDuration: "llm4s.image.generation.duration"

Timer. Tags: provider, model, operation.

Timer. Tags: provider, model, operation.

Attributes

final val ImageGenerationErrors: "llm4s.image.generation.errors"

Counter. Tags: provider, model, operation, error_type.

Counter. Tags: provider, model, operation, error_type.

Attributes

final val ImageGenerations: "llm4s.image.generations"

Counter. Tags: provider, model, operation (generate, edit or other), status.

Counter. Tags: provider, model, operation (generate, edit or other), status.

Attributes

final val ImagesGenerated: "llm4s.images.generated"

Counter of generated images. Tags: provider, model.

Counter of generated images. Tags: provider, model.

Attributes

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

final val Requests: "llm4s.requests"

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

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

Attributes

final val Retries: "llm4s.retries"

Counter of retry attempts (not in the Prometheus module). Tags: provider.

Counter of retry attempts (not in the Prometheus module). Tags: provider.

Attributes

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