From fd0a6311a7871e50a2728d17de490809df3227d8 Mon Sep 17 00:00:00 2001 From: Jörg Thalheim Date: Thu, 11 Nov 2021 11:41:13 +0100 Subject: prometheus: add authorization section --- nixos/modules/services/monitoring/prometheus/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'nixos/modules/services/monitoring/prometheus/default.nix') diff --git a/nixos/modules/services/monitoring/prometheus/default.nix b/nixos/modules/services/monitoring/prometheus/default.nix index f20b8dde1ab..b36b5fd0650 100644 --- a/nixos/modules/services/monitoring/prometheus/default.nix +++ b/nixos/modules/services/monitoring/prometheus/default.nix @@ -251,6 +251,13 @@ let promTypes.scrape_config = types.submodule { options = { + authorization = mkOption { + type = types.attrs; + default = {}; + description = '' + Sets the `Authorization` header on every scrape request with the configured credentials. + ''; + }; job_name = mkOption { type = types.str; description = '' -- cgit 1.4.1