mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
nixos/victoriametrics: the prometheusConfig option isn't null by default (#361778)
This commit is contained in:
commit
65e0eebf2d
4 changed files with 85 additions and 2 deletions
|
@ -115,7 +115,7 @@ in {
|
|||
CacheDirectory = "vmagent";
|
||||
ExecStart = lib.escapeShellArgs (
|
||||
startCLIList
|
||||
++ lib.optionals (cfg.prometheusConfig != null) ["-promscrape.config=${prometheusConfigYml}"]
|
||||
++ lib.optionals (cfg.prometheusConfig != {}) ["-promscrape.config=${prometheusConfigYml}"]
|
||||
);
|
||||
LoadCredential = lib.optional (cfg.remoteWrite.basicAuthPasswordFile != null) [
|
||||
"remote_write_basic_auth_password:${cfg.remoteWrite.basicAuthPasswordFile}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue