From d4599165010f1541219cf32278e21a18ef8db8f7 Mon Sep 17 00:00:00 2001 From: Tom Hunger Date: Sun, 4 Sep 2016 19:59:32 +0100 Subject: [PATCH] prometheus service: rename values to match prometheus 1.0 naming. --- nixos/modules/services/monitoring/prometheus.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/monitoring/prometheus.nix b/nixos/modules/services/monitoring/prometheus.nix index 50cfff19ade..31979d2660c 100644 --- a/nixos/modules/services/monitoring/prometheus.nix +++ b/nixos/modules/services/monitoring/prometheus.nix @@ -152,8 +152,8 @@ let List of file service discovery configurations. ''; }; - target_groups = mkOption { - type = types.listOf promTypes.target_group; + static_configs = mkOption { + type = types.listOf promTypes.static_config; default = []; apply = x: map _filter x; description = '' @@ -171,7 +171,7 @@ let }; }; - promTypes.target_group = types.submodule { + promTypes.static_config = types.submodule { options = { targets = mkOption { type = types.listOf types.str; @@ -251,7 +251,7 @@ let promTypes.file_sd_config = types.submodule { options = { - names = mkOption { + files = mkOption { type = types.listOf types.str; description = '' Patterns for files from which target groups are extracted. Refer