mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/prometheus/exporters: use types.port
for port
option
This commit is contained in:
parent
1d73b07d87
commit
d65d9dea2c
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ let
|
||||||
mkExporterOpts = ({ name, port }: {
|
mkExporterOpts = ({ name, port }: {
|
||||||
enable = mkEnableOption "the prometheus ${name} exporter";
|
enable = mkEnableOption "the prometheus ${name} exporter";
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.int;
|
type = types.port;
|
||||||
default = port;
|
default = port;
|
||||||
description = ''
|
description = ''
|
||||||
Port to listen on.
|
Port to listen on.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue