summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/graphite.nix
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2014-09-15 11:38:39 +0200
committerJaka Hudoklin <jakahudoklin@gmail.com>2014-09-16 10:28:04 +0200
commit271e0f7488925baa21f58bfb0742dd6391e5dad8 (patch)
tree428455be09c9aee4c625f3be1471fa41ab205a13 /nixos/modules/services/monitoring/graphite.nix
parent6f30a55f278e2628af3c02c9ac700acf221c1129 (diff)
downloadnixpkgs-271e0f7488925baa21f58bfb0742dd6391e5dad8.tar
nixpkgs-271e0f7488925baa21f58bfb0742dd6391e5dad8.tar.gz
nixpkgs-271e0f7488925baa21f58bfb0742dd6391e5dad8.tar.bz2
nixpkgs-271e0f7488925baa21f58bfb0742dd6391e5dad8.tar.lz
nixpkgs-271e0f7488925baa21f58bfb0742dd6391e5dad8.tar.xz
nixpkgs-271e0f7488925baa21f58bfb0742dd6391e5dad8.tar.zst
nixpkgs-271e0f7488925baa21f58bfb0742dd6391e5dad8.zip
nixos/graphite: add host and port options for graphiteApi
Diffstat (limited to 'nixos/modules/services/monitoring/graphite.nix')
-rw-r--r--nixos/modules/services/monitoring/graphite.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/graphite.nix b/nixos/modules/services/monitoring/graphite.nix
index b2c46123d16..ecf144aeee0 100644
--- a/nixos/modules/services/monitoring/graphite.nix
+++ b/nixos/modules/services/monitoring/graphite.nix
@@ -98,6 +98,18 @@ in {
         type = types.listOf types.str;
       };
 
+      host = mkOption {
+        description = "Graphite web service listen address.";
+        default = "127.0.0.1";
+        type = types.str;
+      };
+
+      port = mkOption {
+        description = "Graphite api service port.";
+        default = 8080;
+        type = types.int;
+      };
+
       extraConfig = mkOption {
         description = "Extra configuration for graphite api.";
         default = ''
@@ -320,7 +332,7 @@ in {
       serviceConfig = {
         ExecStart = ''
           ${pkgs.python27Packages.waitress}/bin/waitress-serve \
-          --host=${cfg.web.host} --port=${toString cfg.web.port} \
+          --host=${cfg.api.host} --port=${toString cfg.api.port} \
           graphite_api.app:app 
         '';
         User = "graphite";