got grafana working
This commit is contained in:
parent
c51987536a
commit
0aba3aac80
6 changed files with 84 additions and 16 deletions
32
hosts/h001/mods/monitoring.nix
Normal file
32
hosts/h001/mods/monitoring.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = {
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "node";
|
||||
static_configs = [
|
||||
{ targets = [ "localhost:9100" ]; }
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
http_port = 3001;
|
||||
serve_from_sub_path = true;
|
||||
domain = "h001.net.joshuabell.xyz";
|
||||
root_url = "http://h001.net.joshuabell.xyz/grafana/";
|
||||
enforce_domain = true;
|
||||
enable_gzip = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue