Merge branch 'monitoring' of codeberg.org:noe/nixos into monitoring
This commit is contained in:
commit
a0311c4837
2 changed files with 24 additions and 9 deletions
|
@ -22,19 +22,34 @@
|
|||
domain = "monitoring.hoki-porgy.ts.net";
|
||||
};
|
||||
};
|
||||
|
||||
provision = {
|
||||
enable = true;
|
||||
datasources.settings.datasources = [
|
||||
{
|
||||
url = "http://localhost:4000";
|
||||
type = "prometheus";
|
||||
name = "Prometheus";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
port = 4000;
|
||||
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "aerial";
|
||||
scrapeConfigs = let
|
||||
static = name: ports: {
|
||||
job_name = name;
|
||||
static_configs = [
|
||||
{ targets = ["100.111.27.103:14200"]; }
|
||||
{
|
||||
targets = map (port: "${name}.hoki-porgy.ts.net:${builtins.toString port}") ports;
|
||||
}
|
||||
];
|
||||
}
|
||||
};
|
||||
in [
|
||||
(static "aerial" [ 14200 ])
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
serviceConfig.Restart = "always";
|
||||
};
|
||||
|
||||
services.tailscale = {
|
||||
interfaceName = "userspace-networking";
|
||||
};
|
||||
#services.tailscale = {
|
||||
# interfaceName = "userspace-networking";
|
||||
#};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue