This commit is contained in:
xyno (Philipp Hochkamp) 2023-08-01 16:48:32 +02:00
parent c955e6ba58
commit 846aa3ba2e

View file

@ -50,7 +50,7 @@ in
reporting_enabled: false
'';
services.prometheus = {
alertmanager.enable = true;
# alertmanager.enable = true;
enable = true;
scrapeConfigs = foldl (a: b: a ++ b) [ ] (map
(x: (map
@ -119,10 +119,6 @@ in
regex = {
expression = ''(?P<remote_addr>.+) - - \[(?P<time_local>.+)\] "(?P<method>.+) (?P<url>.+) (HTTP\/(?P<version>\d.\d))" (?P<status>\d{3}) (?P<body_bytes_sent>\d+) (["](?P<http_referer>(\-)|(.+))["]) (["](?P<http_user_agent>.+)["])'';
};
drop = {
source = "url";
expression = ''/(_matrix|.well-known|notifications|api|identity).*'';
};
}
{
labels = {
@ -142,6 +138,12 @@ in
format = "02/Jan/2006:15:04:05 -0700";
};
}
{
drop = {
source = "url";
expression = ''/(_matrix|.well-known|notifications|api|identity).*'';
};
}
];
}
];