From beb59b76cfc71cc17f35be243f7ff556a30021d6 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sat, 28 Sep 2019 20:53:43 +0200 Subject: [PATCH] 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. --- .../monitoring/prometheus/exporters/wireguard.nix | 9 +++++++++ .../servers/monitoring/prometheus/wireguard-exporter.nix | 4 ++-- 2 files changed, 11 insertions(+), 2 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"} \ diff --git a/pkgs/servers/monitoring/prometheus/wireguard-exporter.nix b/pkgs/servers/monitoring/prometheus/wireguard-exporter.nix index 9b0d91747ad..249a3f8a089 100644 --- a/pkgs/servers/monitoring/prometheus/wireguard-exporter.nix +++ b/pkgs/servers/monitoring/prometheus/wireguard-exporter.nix @@ -2,13 +2,13 @@ rustPlatform.buildRustPackage rec { pname = "wireguard-exporter"; - version = "3.1.0"; + version = "3.1.1"; src = fetchFromGitHub { owner = "MindFlavor"; repo = "prometheus_wireguard_exporter"; rev = version; - sha256 = "0hl82cg6cijk3xf35cgi4v14gmxk3fj4c3z1x5hrs2i0j1i26ilw"; + sha256 = "1cc36bngpjq8138f98d2dl0imgisiph7xmw1i7csmjs03b4pnfcx"; }; cargoSha256 = "1ndb33bi08j40b4jkj4q7d3k0cw5fscz2gc2cc3134nbs2r7jamk";