metrics: Add domain monitoring
This commit is contained in:
parent
3de03a32ac
commit
eb539f6ee7
|
@ -49,6 +49,19 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
services.prometheus.exporters = {
|
services.prometheus.exporters = {
|
||||||
|
domain = {
|
||||||
|
enable = true;
|
||||||
|
listenAddress = "127.0.0.1";
|
||||||
|
extraFlags = let
|
||||||
|
conf.domains = [
|
||||||
|
"tlater.net"
|
||||||
|
"tlater.com"
|
||||||
|
];
|
||||||
|
in [
|
||||||
|
"--config=${yaml.generate "domains.yml" conf}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
node = {
|
node = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enabledCollectors = ["systemd"];
|
enabledCollectors = ["systemd"];
|
||||||
|
|
Loading…
Reference in a new issue