prometheus: add authorization section
commitfd0a6311a7871e50a2728d17de490809df3227d8
authorJörg Thalheim <joerg@thalheim.io>
dateThu 11 Nov 2021, 11:41 (5 years ago)
parent4e6a72b
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 = ''