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.
(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.
(running?)Check if metrics server is running.
Check if metrics server is running.
(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |