mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
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.
This commit is contained in:
parent
8846bf0574
commit
beb59b76cf
2 changed files with 11 additions and 2 deletions
|
@ -42,6 +42,14 @@ in {
|
||||||
Whether or not the remote IP of a WireGuard peer should be exposed via prometheus.
|
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 = {
|
serviceOpts = {
|
||||||
path = [ pkgs.wireguard-tools ];
|
path = [ pkgs.wireguard-tools ];
|
||||||
|
@ -51,6 +59,7 @@ in {
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${pkgs.prometheus-wireguard-exporter}/bin/prometheus_wireguard_exporter \
|
${pkgs.prometheus-wireguard-exporter}/bin/prometheus_wireguard_exporter \
|
||||||
-p ${toString cfg.port} \
|
-p ${toString cfg.port} \
|
||||||
|
-l ${cfg.addr} \
|
||||||
${optionalString cfg.verbose "-v"} \
|
${optionalString cfg.verbose "-v"} \
|
||||||
${optionalString cfg.singleSubnetPerField "-s"} \
|
${optionalString cfg.singleSubnetPerField "-s"} \
|
||||||
${optionalString cfg.withRemoteIp "-r"} \
|
${optionalString cfg.withRemoteIp "-r"} \
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "wireguard-exporter";
|
pname = "wireguard-exporter";
|
||||||
version = "3.1.0";
|
version = "3.1.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "MindFlavor";
|
owner = "MindFlavor";
|
||||||
repo = "prometheus_wireguard_exporter";
|
repo = "prometheus_wireguard_exporter";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0hl82cg6cijk3xf35cgi4v14gmxk3fj4c3z1x5hrs2i0j1i26ilw";
|
sha256 = "1cc36bngpjq8138f98d2dl0imgisiph7xmw1i7csmjs03b4pnfcx";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "1ndb33bi08j40b4jkj4q7d3k0cw5fscz2gc2cc3134nbs2r7jamk";
|
cargoSha256 = "1ndb33bi08j40b4jkj4q7d3k0cw5fscz2gc2cc3134nbs2r7jamk";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue