try victoriametrics without proxy

This commit is contained in:
2023-08-19 09:05:56 +02:00
parent 4921dfb6f7
commit bd7f68b4a3
2 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,11 @@
sops.secrets.victoria-nginx-password.owner = "nginx"; sops.secrets.victoria-nginx-password.owner = "nginx";
networking.firewall = {
enable = true;
allowedTCPPorts = [ 8428 ];
};
services.nginx.virtualHosts."victoria-server.cloonar.com" = { services.nginx.virtualHosts."victoria-server.cloonar.com" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;

View File

@@ -20,7 +20,7 @@ in {
enable = true; enable = true;
after = ["network-online.target"]; after = ["network-online.target"];
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];
script = "vmagent -promscrape.config=${configure_prom} -envflag.enable -remoteWrite.url=https://victoria-server.cloonar.com/api/v1/write"; script = "vmagent -promscrape.config=${configure_prom} -envflag.enable -remoteWrite.url=http://victoria-server.cloonar.com:8428/api/v1/write";
serviceConfig = { serviceConfig = {
EnvironmentFile=config.sops.secrets.victoria-agent-env.path; EnvironmentFile=config.sops.secrets.victoria-agent-env.path;