HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleprometheus-metrics-ghc-1.0.1.2Haskell2010

Prometheus.Metric.GHC

This module defines a metrics that exposes statistics from the GHC runtime system (GHC.Conc, GHC.Stats).

To use these metrics, the monitored executable should run with the `+RTS -T` command line flags and the following must be added somewhere near the beginning of the main method:

Example1 expression
register ghcMetrics
  • 1 type
  • 2 values