Reorganise prometheus/marvin config
This commit is contained in:
parent
cf600e2dc1
commit
be56e6b9e9
1 changed files with 5 additions and 2 deletions
|
@ -52,7 +52,10 @@ 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;
|
||||||
|
@ -60,8 +63,8 @@ in {
|
||||||
|
|
||||||
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;
|
||||||
|
|
Loading…
Reference in a new issue