summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/statsd.nix
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2013-10-12 12:37:52 +0200
committerJaka Hudoklin <jakahudoklin@gmail.com>2013-10-12 12:37:52 +0200
commit285f447c498fe0720862382fec8c78ccd6030256 (patch)
treee0f8e8bf027768e82dcb95b6542df9d547aef457 /nixos/modules/services/monitoring/statsd.nix
parent29b99ed9fa6c50ac7bef28ac41f8c82a1762ee8b (diff)
downloadnixpkgs-285f447c498fe0720862382fec8c78ccd6030256.tar
nixpkgs-285f447c498fe0720862382fec8c78ccd6030256.tar.gz
nixpkgs-285f447c498fe0720862382fec8c78ccd6030256.tar.bz2
nixpkgs-285f447c498fe0720862382fec8c78ccd6030256.tar.lz
nixpkgs-285f447c498fe0720862382fec8c78ccd6030256.tar.xz
nixpkgs-285f447c498fe0720862382fec8c78ccd6030256.tar.zst
nixpkgs-285f447c498fe0720862382fec8c78ccd6030256.zip
nixos/statsd: Add support to specify managment ip/port
Diffstat (limited to 'nixos/modules/services/monitoring/statsd.nix')
-rw-r--r--nixos/modules/services/monitoring/statsd.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/statsd.nix b/nixos/modules/services/monitoring/statsd.nix
index a3266605671..120c8860d57 100644
--- a/nixos/modules/services/monitoring/statsd.nix
+++ b/nixos/modules/services/monitoring/statsd.nix
@@ -10,6 +10,8 @@ let
     {
       host: "${cfg.host}",
       port: "${toString cfg.port}",
+      mgmt_address: "${cfg.mgmt_address}",
+      mgmt_port: "${toString cfg.mgmt_port}",
       backends: [${concatMapStrings (el: ''"./backends/${el}",'') cfg.backends}],
       graphiteHost: "${cfg.graphiteHost}",
       graphitePort: "${toString cfg.graphitePort}",
@@ -43,6 +45,18 @@ in
       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 {
       description = "List of backends statsd will use for data persistance";
       default = ["graphite"];