Merge pull request #66341 from Ma27/bump-prometheus-wireguard-exporter
prometheus-wireguard-exporter: 3.0.0 -> 3.0.1
This commit is contained in:
commit
f14628e576
@ -34,6 +34,14 @@ in {
|
|||||||
<literal>allowed_ip_1</literal> and so on.
|
<literal>allowed_ip_1</literal> and so on.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
withRemoteIp = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Whether or not the remote IP of a WireGuard peer should be exposed via prometheus.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
serviceOpts = {
|
serviceOpts = {
|
||||||
path = [ pkgs.wireguard-tools ];
|
path = [ pkgs.wireguard-tools ];
|
||||||
@ -45,6 +53,7 @@ in {
|
|||||||
-p ${toString cfg.port} \
|
-p ${toString cfg.port} \
|
||||||
${optionalString cfg.verbose "-v"} \
|
${optionalString cfg.verbose "-v"} \
|
||||||
${optionalString cfg.singleSubnetPerField "-s"} \
|
${optionalString cfg.singleSubnetPerField "-s"} \
|
||||||
|
${optionalString cfg.withRemoteIp "-r"} \
|
||||||
${optionalString (cfg.wireguardConfig != null) "-n ${cfg.wireguardConfig}"}
|
${optionalString (cfg.wireguardConfig != null) "-n ${cfg.wireguardConfig}"}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "wireguard-exporter";
|
pname = "wireguard-exporter";
|
||||||
version = "3.0.0";
|
version = "3.0.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "MindFlavor";
|
owner = "MindFlavor";
|
||||||
repo = "prometheus_wireguard_exporter";
|
repo = "prometheus_wireguard_exporter";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1vgwsg81xcxh7pcdc667mfviwwpzsm4lpllykf78vfahi9qmwffn";
|
sha256 = "0wfv54ny557mjajjdf0lyq5sbf9m7y50ggm7s2v30c639i0swyrc";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "06s9194lvwd7lynxnsrjfbjfj87ngvjbqjhx3idf7d1w9mgi4ysw";
|
cargoSha256 = "06s9194lvwd7lynxnsrjfbjfj87ngvjbqjhx3idf7d1w9mgi4ysw";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user