Monitoring stack (almost done)
This commit is contained in:
parent
7d2ce03dc3
commit
b96176958c
4 changed files with 249 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ in
|
|||
default = "localhost";
|
||||
type = lib.types.str;
|
||||
description = ''
|
||||
Host name where the download manager stack is running
|
||||
Host name where the Prometheus is running
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
@ -58,9 +58,26 @@ in
|
|||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
job_name = "caddy";
|
||||
static_configs = [ { targets = [ "caddy.internal:2024" ]; } ];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.grafana = {
|
||||
provision.datasources.settings = {
|
||||
datasources = [
|
||||
{
|
||||
name = "Prometheus localhost";
|
||||
url = "http://localhost:9090";
|
||||
type = "prometheus";
|
||||
isDefault = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 9090 ];
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue