prometheus-2.1.3: Prometheus Haskell Client

Safe HaskellNone
LanguageHaskell2010

System.Metrics.Prometheus.Http.Push

Synopsis

Documentation

pushMetrics Source #

Arguments

:: URI

PushGateway URI name, including port number (ex: parseUri https://myGateway.com:8080)

-> Text

Job name

-> Labels

Label set to use as a grouping key for metrics

-> Int

Microsecond push frequency

-> IO RegistrySample

Action to get latest metrics

-> IO () 

parseURI :: String -> Maybe URI Source #

Parses a uri such that parseURI "https://example.com" === Just (URI "https:" "//example.com"