Reorganise prometheus/marvin config

This commit is contained in:
daragh 2024-05-21 18:32:37 +01:00
parent cf600e2dc1
commit be56e6b9e9
No known key found for this signature in database

View file

@ -52,16 +52,19 @@ in {
sudo_groups = groups; sudo_groups = groups;
}; };
services.skynet.prometheus.server = { services.skynet.prometheus = {
servers = lib.attrsets.mapAttrsToList (server: server.name) nodes;
server = {
host = { host = {
ip = ip_pub; ip = ip_pub;
name = name; name = name;
}; };
port = 9001; port = 9001;
};
}; };
services.skynet.prometheus.servers = lib.attrsets.mapAttrsToList (server: server.name) nodes;
services.skynet.grafana = { services.skynet.grafana = {
enable = true; enable = true;