Enable prometheus alertmanager
This commit is contained in:
parent
fa0c4cabcc
commit
50cd2305c4
3 changed files with 26 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
retentionTime = "90d";
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "node";
|
||||
|
@ -15,5 +16,10 @@
|
|||
}) (builtins.attrNames hosts);
|
||||
}
|
||||
];
|
||||
alertmanager = {
|
||||
enable = true;
|
||||
listenAddress = "localhost";
|
||||
webExternalUrl = "https://alertmanager.grzb.de";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue