monitoring: make export-to-prometheus deoend on network-online.target
This commit is contained in:
parent
4287ecffdf
commit
385cc6d453
1 changed files with 1 additions and 0 deletions
|
@ -204,6 +204,7 @@ in
|
||||||
path = with pkgs; [ victoriametrics ];
|
path = with pkgs; [ victoriametrics ];
|
||||||
enable = true;
|
enable = true;
|
||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
|
requires = [ "network-online.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
script = "vmagent -promscrape.config=${configure_prom} -remoteWrite.url=http://127.0.0.1:8428/api/v1/write";
|
script = "vmagent -promscrape.config=${configure_prom} -remoteWrite.url=http://127.0.0.1:8428/api/v1/write";
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue