summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/prometheus.nix
diff options
context:
space:
mode:
authorTom Hunger <tehunger@gmail.com>2016-09-04 19:59:32 +0100
committerTom Hunger <tehunger@gmail.com>2016-09-04 20:03:45 +0100
commitd4599165010f1541219cf32278e21a18ef8db8f7 (patch)
tree2c381c5d803b74b0af1e7d5fff82cb6658421b9f /nixos/modules/services/monitoring/prometheus.nix
parent58869cf31020c8eca25f63f8c9d6d2d89f731166 (diff)
downloadnixpkgs-d4599165010f1541219cf32278e21a18ef8db8f7.tar
nixpkgs-d4599165010f1541219cf32278e21a18ef8db8f7.tar.gz
nixpkgs-d4599165010f1541219cf32278e21a18ef8db8f7.tar.bz2
nixpkgs-d4599165010f1541219cf32278e21a18ef8db8f7.tar.lz
nixpkgs-d4599165010f1541219cf32278e21a18ef8db8f7.tar.xz
nixpkgs-d4599165010f1541219cf32278e21a18ef8db8f7.tar.zst
nixpkgs-d4599165010f1541219cf32278e21a18ef8db8f7.zip
prometheus service: rename values to match prometheus 1.0 naming.
Diffstat (limited to 'nixos/modules/services/monitoring/prometheus.nix')
-rw-r--r--nixos/modules/services/monitoring/prometheus.nix8
1 files 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