git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #153314 from Mic92/prometheus

prometheus: add authorization section

commit0432195a4b8d68faaa7d3d4b355260a3120aeeae authorJörg Thalheim <Mic92@users.noreply.github.com> dateTue 4 Jan 2022, 08:34 (5 years ago) parent87b25c1fd0a631
1 file changed+7
nixos/modules/services/monitoring/prometheus/default.nix+7
nixos/modules/services/monitoring/prometheus/default.nix+7
@@ -251,6 +251,13 @@ let
251251
252252 promTypes.scrape_config = types.submodule {
253253 options = {
254+ authorization = mkOption {
255+ type = types.attrs;
256+ default = {};
257+ description = ''
258+ Sets the `Authorization` header on every scrape request with the configured credentials.
259+ '';
260+ };
254261 job_name = mkOption {
255262 type = types.str;
256263 description = ''