| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hydra.Logging.MonitoringSpec
Synopsis
- spec :: Spec
- protocolMetrics :: [Text]
- canonicalAliases :: [Text]
- additionalMetrics :: [Text]
- rtsMetrics :: [Text]
- scrapedMetricNames :: Text -> [Text]
- scrapeMetrics :: Int -> IO Text
Documentation
protocolMetrics :: [Text] Source #
The metrics withMonitoring always registers.
canonicalAliases :: [Text] Source #
Canonical names corresponding to the six compatibility aliases above.
additionalMetrics :: [Text] Source #
The additions approved for the public metrics interface.
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 #
Retry transient HTTP errors while scraping test endpoints. A scrape can arrive before the socket is listening.