Add prometheus #118

Merged
esy merged 27 commits from prometheus2 into main 2024-05-23 21:52:10 +00:00
2 changed files with 7 additions and 21 deletions
Showing only changes of commit cf600e2dc1 - Show all commits

View file

@ -10,6 +10,11 @@ in {
imports = [];
options.services.skynet."${name}" = {
#list of servers passed in for monitoring
servers = mkOption {
type = types.listOf types.str;
};
server = {
enable = mkEnableOption "Prometheus Server";
host = {
@ -26,10 +31,6 @@ in {
type = types.port;
default = 9001;
};
#list of servers passed in for monitoring
servers = mkOption {
type = types.listOf types.str;
};
};
collecter_port = mkOption {

View file

@ -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;