2024-04-01 02:29:05 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
networking.firewall.allowedTCPPorts = [80 443 9001];
|
|
|
|
services.grafana = {
|
|
|
|
enable = true;
|
2024-04-02 00:55:26 +02:00
|
|
|
port = 2342;
|
|
|
|
addr = "127.0.0.1";
|
2024-04-12 12:03:38 +02:00
|
|
|
domain = "grafana.heroin.trade";
|
2024-04-01 02:29:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
services.prometheus = {
|
|
|
|
enable = true;
|
|
|
|
port = 9001;
|
|
|
|
exporters = {
|
|
|
|
node = {
|
|
|
|
enable = true;
|
|
|
|
enabledCollectors = ["systemd" "sysctl" "powersupplyclass"];
|
|
|
|
port = 9002;
|
|
|
|
};
|
2024-06-16 11:52:36 +02:00
|
|
|
wireguard = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2024-04-01 02:29:05 +02:00
|
|
|
};
|
|
|
|
scrapeConfigs = [
|
|
|
|
{
|
|
|
|
job_name = "beleth";
|
|
|
|
static_configs = [
|
|
|
|
{
|
|
|
|
targets = ["127.0.0.1:${toString config.services.prometheus.exporters.node.port}"];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|