Skip to content

Compiling with flags set

Alexander Diemand edited this page Jul 1, 2019 · 4 revisions

There are a number of flags 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-ekg"

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

constraints: iohk-monitoring +disable-ekg

building with stack

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

or set in stack.yaml:

flags:
  iohk-monitoring:
    disable-ekg: true
Clone this wiki locally