monitoring: add influxdb
This commit is contained in:
parent
431f07bf9a
commit
9b1889f048
@ -16,6 +16,7 @@ bula22.de. IN AAAA 2a01:4f8:c0c:c580::1
|
|||||||
bula22.de. IN A 88.99.187.135
|
bula22.de. IN A 88.99.187.135
|
||||||
grafana.bula22.de. IN CNAME monitoring.bula22.de.
|
grafana.bula22.de. IN CNAME monitoring.bula22.de.
|
||||||
prometheus.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.
|
www.bula22.de. IN CNAME bula22.de.
|
||||||
|
|
||||||
; Services
|
; Services
|
||||||
|
@ -21,7 +21,7 @@ with lib;
|
|||||||
networking.defaultGateway = { address = "10.42.10.1"; interface = "ens18"; };
|
networking.defaultGateway = { address = "10.42.10.1"; interface = "ens18"; };
|
||||||
networking.defaultGateway6 = { address = "2a01:4f8:1c0c:8221::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 = {
|
services.prometheus.exporters.blackbox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -298,9 +298,14 @@ with lib;
|
|||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/".proxyPass = "http://[::1]:3001/";
|
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";
|
system.stateVersion = "22.05";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user