Monitoring stack (almost done)

This commit is contained in:
pazpi 2024-10-07 22:03:55 +02:00
parent 7d2ce03dc3
commit b96176958c
4 changed files with 249 additions and 2 deletions

View file

@ -30,7 +30,7 @@ in
default = "localhost";
type = lib.types.str;
description = ''
Host name where the download manager stack is running
Host name where the Prometheus is running
'';
};
@ -58,9 +58,26 @@ in
}
];
}
{
job_name = "caddy";
static_configs = [ { targets = [ "caddy.internal:2024" ]; } ];
}
];
};
services.grafana = {
provision.datasources.settings = {
datasources = [
{
name = "Prometheus localhost";
url = "http://localhost:9090";
type = "prometheus";
isDefault = true;
}
];
};
};
networking.firewall.allowedTCPPorts = [ 9090 ];
})