1
0
Fork 0

monitoring: add influxdb

This commit is contained in:
Garionion 2022-07-23 18:21:30 +02:00
parent 431f07bf9a
commit 9b1889f048
2 changed files with 8 additions and 2 deletions

View File

@ -16,6 +16,7 @@ bula22.de. IN AAAA 2a01:4f8:c0c:c580::1
bula22.de. IN A 88.99.187.135
grafana.bula22.de. IN CNAME monitoring.bula22.de.
prometheus.bula22.de. IN CNAME monitoring.bula22.de.
influxdb.bula22.de. IN CNAME monitoring.bula22.de.
www.bula22.de. IN CNAME bula22.de.
; Services

View File

@ -21,7 +21,7 @@ with lib;
networking.defaultGateway = { address = "10.42.10.1"; interface = "ens18"; };
networking.defaultGateway6 = { address = "2a01:4f8:1c0c:8221::1"; interface = "ens18"; };
services.influxdb.enable = true;
services.influxdb2.enable = true;
services.prometheus.exporters.blackbox = {
enable = true;
@ -298,9 +298,14 @@ with lib;
forceSSL = true;
locations."/".proxyPass = "http://[::1]:3001/";
};
"influxdb.bula22.de" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://[::1]:8086/";
};
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
networking.firewall.allowedTCPPorts = [ 80 443 8086];
system.stateVersion = "22.05";
}