summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-01-09 01:48:43 +0100
committerGitHub <noreply@github.com>2022-01-09 01:48:43 +0100
commit8aeafc25c9cd9701920599019490d109dd1ea4e9 (patch)
treeadc8543809f8d50587d231540221452e84a060c8 /nixos
parent76e5d2339c193ef84493c20dd365e8d51364902b (diff)
parent39ce4ddd85bad02d48c7c0588d50ee03af6a8ef9 (diff)
downloadnixpkgs-8aeafc25c9cd9701920599019490d109dd1ea4e9.tar
nixpkgs-8aeafc25c9cd9701920599019490d109dd1ea4e9.tar.gz
nixpkgs-8aeafc25c9cd9701920599019490d109dd1ea4e9.tar.bz2
nixpkgs-8aeafc25c9cd9701920599019490d109dd1ea4e9.tar.lz
nixpkgs-8aeafc25c9cd9701920599019490d109dd1ea4e9.tar.xz
nixpkgs-8aeafc25c9cd9701920599019490d109dd1ea4e9.tar.zst
nixpkgs-8aeafc25c9cd9701920599019490d109dd1ea4e9.zip
Merge pull request #154054 from SuperSandro2000/prometheus-bearer-token
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/monitoring/prometheus/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/default.nix b/nixos/modules/services/monitoring/prometheus/default.nix
index b36b5fd0650..f563861b61c 100644
--- a/nixos/modules/services/monitoring/prometheus/default.nix
+++ b/nixos/modules/services/monitoring/prometheus/default.nix
@@ -252,8 +252,8 @@ let
   promTypes.scrape_config = types.submodule {
     options = {
       authorization = mkOption {
-        type = types.attrs;
-        default = {};
+        type = types.nullOr types.attrs;
+        default = null;
         description = ''
           Sets the `Authorization` header on every scrape request with the configured credentials.
         '';