mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-27 06:10:53 +01:00
added monitoring stuff
This commit is contained in:
parent
daefee832f
commit
a111d67dc6
1 changed files with 24 additions and 0 deletions
|
@ -100,6 +100,30 @@
|
|||
'';
|
||||
|
||||
|
||||
services.grafana.enable = true;
|
||||
services.grafana.settings.server.http_port = 3000;
|
||||
services.victoriametrics.enable = true;
|
||||
|
||||
services.nginx.virtualHosts."data.julienmalka.me" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:3000";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
services.nginx.virtualHosts."prometheus.julienmalka.me" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:8428";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 1810 ];
|
||||
networking.firewall.allowedUDPPorts = [ 80 443 1810 ];
|
||||
|
|
Loading…
Add table
Reference in a new issue