HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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