trace-dispatcher
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Logging.Prometheus.TCPServer

Description

Run a simple Prometheus TCP server, responding *only* to the '/metrics' URL with current Node metrics

Synopsis

Documentation

runPrometheusSimple :: Tracer IO TracePrometheusSimple -> Store -> (Bool, Maybe HostName, PortNumber) -> IO (Async ()) Source #

Run a PrometheusSimple server with default DoS protection. Will retry / restart Prometheus server when an exception occurs, in increasing intervals.

runPrometheusSimpleSilent :: Store -> (Bool, Maybe HostName, PortNumber) -> IO (Async ()) Source #

Run a PrometheusSimple server with default DoS protection, and don't emit any traces. Will retry / restart Prometheus server when an exception occurs, in increasing intervals.

runPrometheusSimpleWith :: PrometheusSimpleRun -> Tracer IO TracePrometheusSimple -> Store -> (Bool, Maybe HostName, PortNumber) -> IO (Async ()) Source #

Run a PrometheusSimple server with custom DoS protection parameter overrides. Will retry / restart Prometheus server when an exception occurs, in increasing intervals.