diff options
author | Marek Mahut <marek.mahut@gmail.com> | 2019-08-18 18:47:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-18 18:47:19 +0200 |
commit | e6fb350cf646ea8a417cbbf9ea0d59ee17c6ea01 (patch) | |
tree | 3538767809117feb2dcf8db3b2130bbfb227c4d2 /nixos/modules | |
parent | 0c2b9e6eacf6c913c44c01983923e7ce6dfa82fe (diff) | |
parent | 5bbde1e1cab31e7559fb76f0fd22aac5d1e561fe (diff) | |
download | nixlib-e6fb350cf646ea8a417cbbf9ea0d59ee17c6ea01.tar nixlib-e6fb350cf646ea8a417cbbf9ea0d59ee17c6ea01.tar.gz nixlib-e6fb350cf646ea8a417cbbf9ea0d59ee17c6ea01.tar.bz2 nixlib-e6fb350cf646ea8a417cbbf9ea0d59ee17c6ea01.tar.lz nixlib-e6fb350cf646ea8a417cbbf9ea0d59ee17c6ea01.tar.xz nixlib-e6fb350cf646ea8a417cbbf9ea0d59ee17c6ea01.tar.zst nixlib-e6fb350cf646ea8a417cbbf9ea0d59ee17c6ea01.zip |
Merge pull request #66606 from DerTim1/riemann-config
nixos/riemann-tools: Add ExtraArgs Config Option
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/monitoring/riemann-tools.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/nixos/modules/services/monitoring/riemann-tools.nix b/nixos/modules/services/monitoring/riemann-tools.nix index 9c400a1e3e46..2b647b6b1ade 100644 --- a/nixos/modules/services/monitoring/riemann-tools.nix +++ b/nixos/modules/services/monitoring/riemann-tools.nix @@ -11,7 +11,7 @@ let healthLauncher = writeScriptBin "riemann-health" '' #!/bin/sh - exec ${pkgs.riemann-tools}/bin/riemann-health --host ${riemannHost} + exec ${pkgs.riemann-tools}/bin/riemann-health ${builtins.concatStringsSep " " cfg.extraArgs} --host ${riemannHost} ''; @@ -34,8 +34,16 @@ in { Address of the host riemann node. Defaults to localhost. ''; }; + extraArgs = mkOption { + type = types.listOf types.string; + default = []; + description = '' + A list of commandline-switches forwarded to a riemann-tool. + See for example `riemann-health --help` for available options. + ''; + example = ["-p 5555" "--timeout=30" "--attribute=myattribute=42"]; + }; }; - }; config = mkIf cfg.enableHealth { |