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-aggregationdisable-ekgdisable-prometheusdisable-graylogdisable-guidisable-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.
cabal
building with cabal new-build --constraint="iohk-monitoring +disable-observables"
or set in your cabal.project
or cabal.project.local
:
constraints: iohk-monitoring +disable-observables
stack
building with stack build --flag iohk-monitoring:disable-observables
or set in stack.yaml
:
flags:
iohk-monitoring:
disable-observables: true