From 0229f45cf3284a70ff1a7f30c750bbf5aea3b10d Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Mon, 28 Oct 2013 17:08:33 +0100 Subject: [PATCH 1/2] nixos/graphite: graphite requires pidfile set for startup --- nixos/modules/services/monitoring/graphite.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/graphite.nix b/nixos/modules/services/monitoring/graphite.nix index 7fa3ab22b001..a4928963f70c 100644 --- a/nixos/modules/services/monitoring/graphite.nix +++ b/nixos/modules/services/monitoring/graphite.nix @@ -8,7 +8,7 @@ let dataDir = "/var/db/graphite"; carbonOpts = name: with config.ids; '' - --nodaemon --syslog --prefix=${name} \ + --nodaemon --syslog --prefix=${name} --pidfile /var/run/${name}.pid \ --uid ${toString uids.graphite} --gid ${toString uids.graphite} ${name} ''; carbonEnv = { From c1ad1892953e81df17abfeebc90572878d31d2b9 Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Mon, 28 Oct 2013 17:09:53 +0100 Subject: [PATCH 2/2] nixos/graphite: limit amount of log message defaults --- nixos/modules/services/monitoring/graphite.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/monitoring/graphite.nix b/nixos/modules/services/monitoring/graphite.nix index a4928963f70c..dc4261bdb097 100644 --- a/nixos/modules/services/monitoring/graphite.nix +++ b/nixos/modules/services/monitoring/graphite.nix @@ -52,6 +52,9 @@ in { PICKLE_RECEIVER_INTERFACE = 127.0.0.1 LINE_RECEIVER_INTERFACE = 127.0.0.1 CACHE_QUERY_INTERFACE = 127.0.0.1 + # Do not log every update + LOG_UPDATES = False + LOG_CACHE_HITS = False ''; type = types.uniq types.string; };