PrometheusEndpoint

org.llm4s.metrics.PrometheusEndpoint
See thePrometheusEndpoint companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def start(port: Int, registry: PrometheusRegistry): Result[PrometheusEndpoint]

Start Prometheus HTTP endpoint.

Start Prometheus HTTP endpoint.

Creates an HTTP server that exposes the metrics from the given registry at the /metrics endpoint on the specified port.

Value parameters

port

Port to listen on (default: 9090)

registry

Prometheus collector registry containing metrics

Attributes

Returns

Right(endpoint) on success, Left(error) if port unavailable or other failure