Merge pull request #1067 from offlinehacker/nixos/statsd/mgmt_ip_port
nixos/statsd: Add support to specify managment ip/port
This commit is contained in:
commit
a8dd839c1f
|
@ -10,6 +10,8 @@ let
|
||||||
{
|
{
|
||||||
host: "${cfg.host}",
|
host: "${cfg.host}",
|
||||||
port: "${toString cfg.port}",
|
port: "${toString cfg.port}",
|
||||||
|
mgmt_address: "${cfg.mgmt_address}",
|
||||||
|
mgmt_port: "${toString cfg.mgmt_port}",
|
||||||
backends: [${concatMapStrings (el: ''"./backends/${el}",'') cfg.backends}],
|
backends: [${concatMapStrings (el: ''"./backends/${el}",'') cfg.backends}],
|
||||||
graphiteHost: "${cfg.graphiteHost}",
|
graphiteHost: "${cfg.graphiteHost}",
|
||||||
graphitePort: "${toString cfg.graphitePort}",
|
graphitePort: "${toString cfg.graphitePort}",
|
||||||
|
@ -43,6 +45,18 @@ in
|
||||||
type = types.uniq types.int;
|
type = types.uniq types.int;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mgmt_address = mkOption {
|
||||||
|
description = "Address to run managment TCP interface on";
|
||||||
|
default = "127.0.0.1";
|
||||||
|
type = types.uniq types.string;
|
||||||
|
};
|
||||||
|
|
||||||
|
mgmt_port = mkOption {
|
||||||
|
description = "Port to run the management TCP interface on";
|
||||||
|
default = 8126;
|
||||||
|
type = types.uniq types.int;
|
||||||
|
};
|
||||||
|
|
||||||
backends = mkOption {
|
backends = mkOption {
|
||||||
description = "List of backends statsd will use for data persistance";
|
description = "List of backends statsd will use for data persistance";
|
||||||
default = ["graphite"];
|
default = ["graphite"];
|
||||||
|
|
Loading…
Reference in a new issue