| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Cardano.Logging.Prometheus.Exposition
Synopsis
- type MetricName = Text
- asPrometheusMetricName :: MetricName -> MetricName
- renderExpositionFromSample :: Bool -> Sample -> Text
- renderExpositionFromSampleWith :: [(MetricName, Builder)] -> Bool -> Sample -> Text
Documentation
type MetricName = Text Source #
asPrometheusMetricName :: MetricName -> MetricName Source #
Converts Hermod's more permissive, internal metrics names to external ones conforming to https://prometheus.io/docs/practices/naming/ The external metric name will be visible in the exposition.
renderExpositionFromSample :: Bool -> Sample -> Text Source #
renderExpositionFromSampleWith :: [(MetricName, Builder)] -> Bool -> Sample -> Text Source #