Compare commits

...

5 commits

Author SHA1 Message Date
2e20dabf06
Add (disabled) restic Prometheus exporter
All checks were successful
EVAL x86_64-linux.picard
BUILD x86_64-linux.picard
UPLOAD x86_64-linux.picard
DOWNLOAD x86_64-linux.picard
CACHIX x86_64-linux.picard
ATTIC x86_64-linux.picard
/ test (push) Successful in 48s
2025-04-29 20:56:07 +02:00
baac8eed23
Scaps Prometheus exporters from pike 2025-04-29 20:55:25 +02:00
b2bb18f583
Disable pushgateway 2025-04-29 20:54:53 +02:00
3b9e5cf5c6
Enable prometheus exporters on pike 2025-04-29 20:54:36 +02:00
4f293981f8
Update planimetry 2025-04-29 20:53:11 +02:00
3 changed files with 26 additions and 11 deletions

View file

@ -1,6 +1,7 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: }:
let let
@ -15,6 +16,7 @@ in
"sisko" "sisko"
"picard" "picard"
"kirk" "kirk"
"pike"
] ]
{ {
enable = true; enable = true;
@ -53,6 +55,7 @@ in
"sisko" "sisko"
"picard" "picard"
"kirk" "kirk"
"pike"
] ]
{ {
enable = true; enable = true;
@ -62,13 +65,17 @@ in
[ [
"picard" "picard"
"kirk" "kirk"
"pike"
] ]
{ {
enable = true; enable = true;
}; };
# restic = mkFor ["sisko"] { restic = mkFor [ "sisko" ] {
# enable = true; # https://github.com/ngosang/restic-exporter/issues/31
# }; enable = false;
repository = config.services.restic.backups.sisko.repository;
passwordFile = config.age.secrets.SISKO_RESTIC_PASSWORD.path;
};
postgres = mkFor [ "sisko" ] { postgres = mkFor [ "sisko" ] {
enable = true; enable = true;
}; };
@ -81,9 +88,12 @@ in
"sisko" "sisko"
"picard" "picard"
"kirk" "kirk"
"pike"
] ]
{ {
enable = true; enable = true;
}; };
}; };
systemd.services.prometheus-restic-exporter.path = [ pkgs.openssh ];
} }

View file

@ -27,14 +27,14 @@ in
} }
]; ];
} }
{ # {
job_name = "pushgateway"; # job_name = "pushgateway";
static_configs = [ # static_configs = [
{ # {
targets = [ cfg.pushgateway.web.listen-address ]; # targets = [ cfg.pushgateway.web.listen-address ];
} # }
]; # ];
} # }
{ {
job_name = "node"; job_name = "node";
static_configs = [ static_configs = [
@ -43,6 +43,7 @@ in
"sisko" "sisko"
"picard" "picard"
"kirk" "kirk"
"pike"
]; ];
} }
]; ];
@ -54,6 +55,7 @@ in
targets = builtins.map (host: "${host}.wg.aciceri.dev:9586") [ targets = builtins.map (host: "${host}.wg.aciceri.dev:9586") [
"picard" "picard"
"kirk" "kirk"
"pike"
]; ];
} }
]; ];
@ -65,6 +67,7 @@ in
targets = builtins.map (host: "${host}.wg.aciceri.dev:9134") [ targets = builtins.map (host: "${host}.wg.aciceri.dev:9134") [
"picard" "picard"
"kirk" "kirk"
"pike"
]; ];
} }
]; ];
@ -101,12 +104,14 @@ in
"sisko" "sisko"
"kirk" "kirk"
"picard" "picard"
"pike"
]; ];
} }
]; ];
} }
]; ];
}; };
environment.persistence."/persist".directories = [ environment.persistence."/persist".directories = [
"/var/lib/${cfg.stateDir}" "/var/lib/${cfg.stateDir}"
]; ];

Binary file not shown.