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,7 +52,10 @@ in {
sudo_groups = groups;
};
services.skynet.prometheus.server = {
services.skynet.prometheus = {
servers = lib.attrsets.mapAttrsToList (server: server.name) nodes;
server = {
host = {
ip = ip_pub;
name = name;
@ -60,8 +63,8 @@ in {
port = 9001;
};
};
services.skynet.prometheus.servers = lib.attrsets.mapAttrsToList (server: server.name) nodes;
services.skynet.grafana = {
enable = true;