| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hydra.Logging.MonitoringSpec
Synopsis
- spec :: Spec
- protocolMetrics :: [Text]
- rtsMetrics :: [Text]
- scrapedMetricNames :: Text -> [Text]
- scrapeMetrics :: Int -> IO Text
Documentation
protocolMetrics :: [Text] Source #
The metrics withMonitoring always registers.
rtsMetrics :: [Text] Source #
Registered only when the RTS collects statistics, see registerRtsMetrics.
scrapedMetricNames :: Text -> [Text] Source #
The metric names a scrape actually exposes: the identifier starting each sample line, with the suffixes Prometheus appends to a histogram removed.
Matching whole names rather than substrings is the point: renaming a counter
to, say, hydra_head_inputs_total has to be caught, and the old name is a
prefix of the new one.
scrapeMetrics :: Int -> IO Text Source #
withMonitoring forks its server and returns immediately, so a scrape can
arrive before the socket is listening.