mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-08 03:26:08 +03:00
prometheus-deluge-exporter: init at 2.4.0-unstable-2024-06-02
This commit is contained in:
parent
86d79075b7
commit
1bb9bf32b7
4 changed files with 164 additions and 0 deletions
|
@ -209,6 +209,34 @@ let
|
|||
'';
|
||||
};
|
||||
|
||||
deluge = {
|
||||
exporterConfig = {
|
||||
enable = true;
|
||||
port = 1234;
|
||||
listenAddress = "127.0.0.1";
|
||||
|
||||
delugeUser = "user";
|
||||
delugePort = 2345;
|
||||
delugePasswordFile = pkgs.writeText "password" "weak_password";
|
||||
};
|
||||
metricProvider = {
|
||||
services.deluge.enable = true;
|
||||
services.deluge.declarative = true;
|
||||
services.deluge.config.daemon_port = 2345;
|
||||
services.deluge.authFile = pkgs.writeText "authFile" ''
|
||||
localclient:abcdef:10
|
||||
user:weak_password:10
|
||||
'';
|
||||
};
|
||||
exporterTest = ''
|
||||
wait_for_unit("deluged.service")
|
||||
wait_for_open_port(2345)
|
||||
wait_for_unit("prometheus-deluge-exporter.service")
|
||||
wait_for_open_port(1234)
|
||||
succeed("curl -sSf http://localhost:1234 | grep 'deluge_torrents'")
|
||||
'';
|
||||
};
|
||||
|
||||
dnsmasq = {
|
||||
exporterConfig = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue