diff options
author | Silvan Mosberger <infinisil@icloud.com> | 2019-01-22 15:18:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-22 15:18:06 +0100 |
commit | 2f9ef8c563729dfdacc87287bb836f52d799b148 (patch) | |
tree | a2b2f6ca9666dd4873fc8aaf248e73a29753b244 /nixos/modules | |
parent | 4b6020faf58c88a6a1e610280b54f8ac79b1c165 (diff) | |
parent | 003132c2dd95110a30fc7b28dc71d77ca11d6298 (diff) | |
download | nixlib-2f9ef8c563729dfdacc87287bb836f52d799b148.tar nixlib-2f9ef8c563729dfdacc87287bb836f52d799b148.tar.gz nixlib-2f9ef8c563729dfdacc87287bb836f52d799b148.tar.bz2 nixlib-2f9ef8c563729dfdacc87287bb836f52d799b148.tar.lz nixlib-2f9ef8c563729dfdacc87287bb836f52d799b148.tar.xz nixlib-2f9ef8c563729dfdacc87287bb836f52d799b148.tar.zst nixlib-2f9ef8c563729dfdacc87287bb836f52d799b148.zip |
Merge pull request #54051 from Ma27/optional-prometheus-source_labels
nixos/prometheus: make `source_labels` optional
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/monitoring/prometheus/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/default.nix b/nixos/modules/services/monitoring/prometheus/default.nix index bf4dfc666bb6..1b1503ab5fc0 100644 --- a/nixos/modules/services/monitoring/prometheus/default.nix +++ b/nixos/modules/services/monitoring/prometheus/default.nix @@ -325,7 +325,8 @@ let promTypes.relabel_config = types.submodule { options = { source_labels = mkOption { - type = types.listOf types.str; + type = with types; nullOr (listOf str); + default = null; description = '' The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against |