summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2021-03-05 13:06:03 +0100
committerMaximilian Bosch <maximilian@mbosch.me>2021-03-05 13:06:03 +0100
commitd65d9dea2c28c1fb57dd2206a85c562d514ad9df (patch)
tree3fc076f7fe153be4f2d9944cf608bdc6c58c1a9a /nixos
parent1d73b07d8746ed62cce744d8ed6a99a7398ec276 (diff)
nixos/prometheus/exporters: use `types.port` for `port` option
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters.nix b/nixos/modules/services/monitoring/prometheus/exporters.nix
index 940f28189371..e48090d92bf8 100644
--- a/nixos/modules/services/monitoring/prometheus/exporters.nix
+++ b/nixos/modules/services/monitoring/prometheus/exporters.nix
@@ -64,7 +64,7 @@ let
mkExporterOpts = ({ name, port }: {
enable = mkEnableOption "the prometheus ${name} exporter";
port = mkOption {
- type = types.int;
+ type = types.port;
default = port;
description = ''
Port to listen on.