Merge pull request #54051 from Ma27/optional-prometheus-source_labels

nixos/prometheus: make `source_labels` optional
This commit is contained in:
Silvan Mosberger 2019-01-22 15:18:06 +01:00 committed by GitHub
commit 2f9ef8c563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -325,7 +325,8 @@ let
promTypes.relabel_config = types.submodule { promTypes.relabel_config = types.submodule {
options = { options = {
source_labels = mkOption { source_labels = mkOption {
type = types.listOf types.str; type = with types; nullOr (listOf str);
default = null;
description = '' description = ''
The source labels select values from existing labels. Their content The source labels select values from existing labels. Their content
is concatenated using the configured separator and matched against is concatenated using the configured separator and matched against