1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Scrape prometheus exporters over tailscale

This commit is contained in:
RGBCube 2024-05-11 23:43:06 +03:00
parent 685a6482ff
commit 9fac8ab7e4
No known key found for this signature in database
8 changed files with 51 additions and 115 deletions

View file

@ -4,27 +4,11 @@ let
inherit (config.networking) domain;
fqdn = "mail.${domain}";
prometheusPort = 9040;
in systemConfiguration {
secrets.mailPassword.file = ./password.hash.age;
services.prometheus = {
exporters.postfix = enabled {
listenAddress = "[::1]";
port = prometheusPort;
};
scrapeConfigs = [{
job_name = "postfix";
static_configs = [{
labels.job = "postfix";
targets = [
"[::1]:${toString prometheusPort}"
];
}];
}];
services.prometheus.exporters.postfix = enabled {
listenAddress = "[::]";
};
mailserver = enabled {