1
0

monitoring: set retention time to 90d

This commit is contained in:
Garionion 2022-07-24 16:54:14 +02:00
parent b5e87117aa
commit 2ff4a27d5b

View File

@ -74,6 +74,7 @@ with lib;
}; };
services.prometheus = { services.prometheus = {
enable = true; enable = true;
retentionTime = "90d";
listenAddress = "[::1]"; listenAddress = "[::1]";
scrapeConfigs = [ scrapeConfigs = [
{ {
@ -314,25 +315,16 @@ with lib;
enable = true; enable = true;
virtualHosts = { virtualHosts = {
"prometheus.bula22.de" = { "prometheus.bula22.de" = {
serverAliases = [
"prometheus"
];
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/".proxyPass = "http://[::1]:9090/"; locations."/".proxyPass = "http://[::1]:9090/";
}; };
"grafana.bula22.de" = { "grafana.bula22.de" = {
serverAliases = [
"grafana"
];
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/".proxyPass = "http://[::1]:3001/"; locations."/".proxyPass = "http://[::1]:3001/";
}; };
"influxdb.bula22.de" = { "influxdb.bula22.de" = {
serverAliases = [
"influxdb"
];
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/".proxyPass = "http://[::1]:8086/"; locations."/".proxyPass = "http://[::1]:8086/";