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:
parent
685a6482ff
commit
9fac8ab7e4
8 changed files with 51 additions and 115 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue