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,
lib,
pkgs,
...
}:
let
@ -15,6 +16,7 @@ in
"sisko"
"picard"
"kirk"
"pike"
]
{
enable = true;
@ -53,6 +55,7 @@ in
"sisko"
"picard"
"kirk"
"pike"
]
{
enable = true;
@ -62,13 +65,17 @@ in
[
"picard"
"kirk"
"pike"
]
{
enable = true;
};
# restic = mkFor ["sisko"] {
# enable = true;
# };
restic = mkFor [ "sisko" ] {
# 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" ] {
enable = true;
};
@ -81,9 +88,12 @@ in
"sisko"
"picard"
"kirk"
"pike"
]
{
enable = true;
};
};
systemd.services.prometheus-restic-exporter.path = [ pkgs.openssh ];
}

View file

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

Binary file not shown.