Setup mail server and restructure some things
This commit is contained in:
parent
4c382e629d
commit
ba93d164cf
90 changed files with 512 additions and 66 deletions
19
config/hosts/metrics/prometheus.nix
Normal file
19
config/hosts/metrics/prometheus.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ hosts, ... }:
|
||||
{
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "node";
|
||||
static_configs = builtins.map (name: {
|
||||
targets = [
|
||||
"${name}.${hosts.${name}.site}.grzb.de:9100"
|
||||
];
|
||||
labels = {
|
||||
host = "${name}.${hosts.${name}.site}.grzb.de";
|
||||
};
|
||||
}) (builtins.attrNames hosts);
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue