diff --git a/nixos/modules/services/monitoring/prometheus.nix b/nixos/modules/services/monitoring/prometheus.nix index 50cfff19ade3..31979d2660cc 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