diff options
author | n0emis <22817873+n0emis@users.noreply.github.com> | 2021-07-10 21:18:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-10 21:18:38 +0200 |
commit | 336494e19f4110a9024f994a5628743f77fbade2 (patch) | |
tree | 0999b1739f66bd1d9b9ffc665edff099300306db /nixos/modules/services/monitoring | |
parent | 6152125110db596320d919df0b4b8bbbd912b089 (diff) | |
download | nixpkgs-336494e19f4110a9024f994a5628743f77fbade2.tar nixpkgs-336494e19f4110a9024f994a5628743f77fbade2.tar.gz nixpkgs-336494e19f4110a9024f994a5628743f77fbade2.tar.bz2 nixpkgs-336494e19f4110a9024f994a5628743f77fbade2.tar.lz nixpkgs-336494e19f4110a9024f994a5628743f77fbade2.tar.xz nixpkgs-336494e19f4110a9024f994a5628743f77fbade2.tar.zst nixpkgs-336494e19f4110a9024f994a5628743f77fbade2.zip |
nixos/prometheus: add password_file option to scrapeConfig's basic_auth (#123252)
Diffstat (limited to 'nixos/modules/services/monitoring')
-rw-r--r-- | nixos/modules/services/monitoring/prometheus/default.nix | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/default.nix b/nixos/modules/services/monitoring/prometheus/default.nix index 8fe689ef3db..3be247ffb24 100644 --- a/nixos/modules/services/monitoring/prometheus/default.nix +++ b/nixos/modules/services/monitoring/prometheus/default.nix @@ -323,15 +323,13 @@ let HTTP username ''; }; - password = mkOption { - type = types.str; - description = '' - HTTP password - ''; - }; + password = mkOpt types.str "HTTP password"; + password_file = mkOpt types.str "HTTP password file"; }; }) '' - Optional http login credentials for metrics scraping. + Sets the `Authorization` header on every scrape request with the + configured username and password. + password and password_file are mutually exclusive. ''; bearer_token = mkOpt types.str '' |