servant-prometheus-1.1.0: Helpers for using prometheus with servant
Safe HaskellSafe-Inferred
LanguageHaskell2010

Prometheus.Servant

Synopsis

Documentation

prometheusMiddleware :: (Label mLatencyLabel, Label mActiveLabel, HasEndpoint api) => Metrics mLatencyLabel mActiveLabel -> Proxy api -> Middleware Source #

Middleware to observe Metrics.

data Metrics mLatencyLabel mActiveLabel Source #

Supported metrics and a function to get relevant labels from Endpoint.

Constructors

Metrics 

Fields

type RequestLatencyMetric l = Vector l Histogram Source #

Request latency metric parametrized with some label l.

type ActiveRequestsMetric l = Vector l Gauge Source #

Active requests metric parametrized with some label l.