Add prometheus #118

Merged
esy merged 27 commits from prometheus2 into main 2024-05-23 21:52:10 +00:00
Showing only changes of commit 147bd86ad5 - Show all commits

View file

@ -43,7 +43,7 @@ in {
}; };
}; };
config = config = mkMerge [
{ {
services.prometheus.exporters.node = { services.prometheus.exporters.node = {
enable = true; enable = true;
@ -52,7 +52,7 @@ in {
port = cfg.port_collecter; port = cfg.port_collecter;
}; };
} }
// mkIf cfg.server.enable { (mkIf cfg.server.enable {
services.prometheus = { services.prometheus = {
enable = true; enable = true;
port = cfg.server.port; port = cfg.server.port;
@ -67,5 +67,6 @@ in {
} }
]; ];
}; };
}; })
];
} }