mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +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.
|
||||
'';
|
||||
};
|
||||
|
||||
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"} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue