prometheus service: rename values to match prometheus 1.0 naming.

This commit is contained in:
Tom Hunger 2016-09-04 19:59:32 +01:00
parent 58869cf310
commit d459916501

View File

@ -152,8 +152,8 @@ let
List of file service discovery configurations. List of file service discovery configurations.
''; '';
}; };
target_groups = mkOption { static_configs = mkOption {
type = types.listOf promTypes.target_group; type = types.listOf promTypes.static_config;
default = []; default = [];
apply = x: map _filter x; apply = x: map _filter x;
description = '' description = ''
@ -171,7 +171,7 @@ let
}; };
}; };
promTypes.target_group = types.submodule { promTypes.static_config = types.submodule {
options = { options = {
targets = mkOption { targets = mkOption {
type = types.listOf types.str; type = types.listOf types.str;
@ -251,7 +251,7 @@ let
promTypes.file_sd_config = types.submodule { promTypes.file_sd_config = types.submodule {
options = { options = {
names = mkOption { files = mkOption {
type = types.listOf types.str; type = types.listOf types.str;
description = '' description = ''
Patterns for files from which target groups are extracted. Refer Patterns for files from which target groups are extracted. Refer