marconi-cardano-core-1.2.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Marconi.Cardano.Core.Transformer.WithSyncStats.Backend.Prometheus

Synopsis

Documentation

mkPrometheusBackend :: NominalDiffTime -> IO StatsBackend #

Creates a simple Prometheus backend which keeps track of the number of processed blocks and the number of rollbacks.

Takes a NominalDiffTime which determines how frequently we send stats to Prometheus.