deploy prometheus clan service

This commit is contained in:
2025-08-25 07:21:21 +02:00
parent a7d835cdee
commit 713c2c5b58
4 changed files with 39 additions and 26 deletions

View File

@@ -1,6 +1,5 @@
{
self,
config,
...
}:
{
@@ -48,29 +47,6 @@
efiInstallAsRemovable = true;
};
services.prometheus = {
enable = true;
port = 9001;
exporters = {
node = {
enable = true;
enabledCollectors = [ "systemd" ];
port = 9002;
};
};
scrapeConfigs = [
{
job_name = "crocus";
static_configs = [
{
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
}
];
}
];
};
services.nginx = {
enable = true;
recommendedProxySettings = true;