try victoriametrics without proxy
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user