Add prometheus #118
2 changed files with 5 additions and 6 deletions
|
@ -26,17 +26,16 @@ in {
|
||||||
type = types.port;
|
type = types.port;
|
||||||
default = 9001;
|
default = 9001;
|
||||||
};
|
};
|
||||||
|
#list of servers passed in for monitoring
|
||||||
|
servers = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
collecter_port = mkOption {
|
collecter_port = mkOption {
|
||||||
type = types.port;
|
type = types.port;
|
||||||
default = 9002;
|
default = 9002;
|
||||||
};
|
};
|
||||||
|
|
||||||
#list of servers passed in for monitoring
|
|
||||||
servers = mkOption {
|
|
||||||
type = types.listOf types.str;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config =
|
config =
|
||||||
|
|
|
@ -86,7 +86,7 @@ in {
|
||||||
name = name;
|
name = name;
|
||||||
};
|
};
|
||||||
|
|
||||||
# maybe just do provision config directly ?
|
# maybe just do provision config directly ?
|
||||||
datasource = {
|
datasource = {
|
||||||
name = "Prometheus";
|
name = "Prometheus";
|
||||||
url = "localhost:${toString config.services.prometheus.port}";
|
url = "localhost:${toString config.services.prometheus.port}";
|
||||||
|
|
Loading…
Reference in a new issue