configure grafana further. set up prometheus node export.
Some checks failed
/ Check formatting (push) Failing after 1s
Some checks failed
/ Check formatting (push) Failing after 1s
This commit is contained in:
parent
8bc83ebd0b
commit
f93018a4cf
2 changed files with 38 additions and 2 deletions
|
@ -1,11 +1,41 @@
|
|||
{
|
||||
universal.modules = [
|
||||
{
|
||||
services.prometheus.exporters = {
|
||||
node = {
|
||||
enable = true;
|
||||
enabledCollectors = ["systemd"];
|
||||
port = 6703;
|
||||
};
|
||||
varnish.enable = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
glucose.modules = [
|
||||
{
|
||||
lib,
|
||||
molecules,
|
||||
...
|
||||
}: let
|
||||
ip = i: "10.24.1.${toString i}";
|
||||
ips = builtins.mapAttrs (lib.const ip) molecules;
|
||||
ips' = builtins.mapAttrs (name: ip: "${ip}:6703") ips;
|
||||
in {
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
port = 6750;
|
||||
|
||||
enableReload = true;
|
||||
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "devices";
|
||||
static_configs = [
|
||||
{
|
||||
targets = ips';
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue