Liking cljdoc? Tell your friends :D

lb.metrics.server

HTTP server for Prometheus metrics endpoint.

Provides a simple HTTP server using Java's built-in HttpServer that serves Prometheus-formatted metrics on a configurable endpoint.

HTTP server for Prometheus metrics endpoint.

Provides a simple HTTP server using Java's built-in HttpServer
that serves Prometheus-formatted metrics on a configurable endpoint.
raw docstring

get-statusclj

(get-status)

Get metrics server status.

Returns nil if not running, or map with :port and :path if running.

Get metrics server status.

Returns nil if not running, or map with :port and :path if running.
sourceraw docstring

running?clj

(running?)

Check if metrics server is running.

Check if metrics server is running.
sourceraw docstring

start!clj

(start! {:keys [port path] :or {port 9090 path "/metrics"}})

Start the metrics HTTP server.

config is a map with: :port - Port to listen on (default 9090) :path - Path for metrics endpoint (default "/metrics")

Returns true if started successfully, false if already running.

Start the metrics HTTP server.

config is a map with:
  :port - Port to listen on (default 9090)
  :path - Path for metrics endpoint (default "/metrics")

Returns true if started successfully, false if already running.
sourceraw docstring

stop!clj

(stop!)

Stop the metrics HTTP server.

Returns true if stopped successfully, false if not running.

Stop the metrics HTTP server.

Returns true if stopped successfully, false if not running.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close