mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
nixos/prometheus: make source_labels
optional
It's possible to skip `source_labels` entirely, an example for this is the blackbox exporter configuration: https://github.com/prometheus/blackbox_exporter#prometheus-configuration
This commit is contained in:
parent
3956a8421f
commit
003132c2dd
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue