20 lines
446 B
Nix
20 lines
446 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
let
|
|
domain-name = config.instance.local-domain;
|
|
in {
|
|
config.fudo.prometheus = {
|
|
enable = true;
|
|
hostname = "metrics.${domain-name}";
|
|
service-discovery-dns = let
|
|
srv-dns = "_metrics._tcp.${domain-name}";
|
|
in {
|
|
node = [ "node.${srv-dns}" ];
|
|
postfix = [ "postfix.${srv-dns}" ];
|
|
dovecot = [ "dovecot.${srv-dns}" ];
|
|
rspamd = [ "rspamd.${srv-dns}" ];
|
|
};
|
|
};
|
|
}
|