Using nodes instead of hardcoded server names
Might not work probably did smnth wrong
This commit is contained in:
parent
7f5f21dc8a
commit
cf600e2dc1
2 changed files with 7 additions and 21 deletions
|
@ -59,25 +59,10 @@ in {
|
|||
};
|
||||
|
||||
port = 9001;
|
||||
|
||||
servers = [
|
||||
"agentjones"
|
||||
"cadie"
|
||||
"earth"
|
||||
"galatea"
|
||||
"gir"
|
||||
"glados"
|
||||
"kitt"
|
||||
"marvin"
|
||||
"neuromancer"
|
||||
"optimus"
|
||||
"skynet"
|
||||
"vendetta"
|
||||
"vigil"
|
||||
"wheatly"
|
||||
];
|
||||
};
|
||||
|
||||
services.skynet.prometheus.servers = lib.attrsets.mapAttrsToList (server: server.name) nodes;
|
||||
|
||||
services.skynet.grafana = {
|
||||
enable = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue