Compiling with flags set - input-output-hk/iohk-monitoring-framework GitHub Wiki

The Backends have been moved to their own libraries and so we do not need flags to control compilation anymore.

Only a single flag is possible to set when compiling this project.

  • disable-aggregation
  • disable-ekg
  • disable-prometheus
  • disable-graylog
  • disable-gui
  • disable-monitoring
  • disable-observables
  • disable-systemd

When the flag is set, the corresponding subsystem is turned off. This also has the effect that the dependencies that need to be built and included with this project are reduced, depending on the subsystem that got turned off.

building with cabal

cabal new-build --constraint="iohk-monitoring +disable-observables"

or set in your cabal.project or cabal.project.local:

constraints: iohk-monitoring +disable-observables

building with stack

stack build --flag iohk-monitoring:disable-observables

or set in stack.yaml:

flags:
  iohk-monitoring:
    disable-observables: true