diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2019-09-28 20:53:43 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2019-09-28 20:55:57 +0200 |
commit | beb59b76cfc71cc17f35be243f7ff556a30021d6 (patch) | |
tree | dd2ad57e68ef973aac3fad24f41fd0b090ee3883 /nixos/modules/services/monitoring/prometheus/exporters/wireguard.nix | |
parent | 8846bf0574bf4711e9ecba7018a9e04d55145f91 (diff) | |
download | nixpkgs-beb59b76cfc71cc17f35be243f7ff556a30021d6.tar nixpkgs-beb59b76cfc71cc17f35be243f7ff556a30021d6.tar.gz nixpkgs-beb59b76cfc71cc17f35be243f7ff556a30021d6.tar.bz2 nixpkgs-beb59b76cfc71cc17f35be243f7ff556a30021d6.tar.lz nixpkgs-beb59b76cfc71cc17f35be243f7ff556a30021d6.tar.xz nixpkgs-beb59b76cfc71cc17f35be243f7ff556a30021d6.tar.zst nixpkgs-beb59b76cfc71cc17f35be243f7ff556a30021d6.zip |
prometheus-wireguard-exporter: 3.1.0 -> 3.1.1
https://github.com/MindFlavor/prometheus_wireguard_exporter/releases/tag/3.1.1 This release adds a flag `-l` which takes an address where the exporter is available. The default is `0.0.0.0` (previously, `0.0.0.0` was used by default). Please note that there are no dependency changes in Cargo and therefore the cargo hash didn't change.
Diffstat (limited to 'nixos/modules/services/monitoring/prometheus/exporters/wireguard.nix')
-rw-r--r-- | nixos/modules/services/monitoring/prometheus/exporters/wireguard.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/wireguard.nix b/nixos/modules/services/monitoring/prometheus/exporters/wireguard.nix index 8ae2c927b58..82e881236ad 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters/wireguard.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters/wireguard.nix @@ -42,6 +42,14 @@ in { Whether or not the remote IP of a WireGuard peer should be exposed via prometheus. ''; }; + + addr = mkOption { + type = types.str; + default = "0.0.0.0"; + description = '' + IP address of the exporter. + ''; + }; }; serviceOpts = { path = [ pkgs.wireguard-tools ]; @@ -51,6 +59,7 @@ in { ExecStart = '' ${pkgs.prometheus-wireguard-exporter}/bin/prometheus_wireguard_exporter \ -p ${toString cfg.port} \ + -l ${cfg.addr} \ ${optionalString cfg.verbose "-v"} \ ${optionalString cfg.singleSubnetPerField "-s"} \ ${optionalString cfg.withRemoteIp "-r"} \ |