From b3c25831d1ac80578222cc7d0e8f3559f92f34c1 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 5 Aug 2015 14:56:38 +0200 Subject: add graphite to pnp --- makefu/2configs/graphite-web.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 makefu/2configs/graphite-web.nix (limited to 'makefu/2configs') diff --git a/makefu/2configs/graphite-web.nix b/makefu/2configs/graphite-web.nix new file mode 100644 index 000000000..daa1d49a3 --- /dev/null +++ b/makefu/2configs/graphite-web.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: + +with lib; +{ + imports = [ ]; + services.graphite = { + web = { + enable = true; + host = "0.0.0.0"; + }; + carbon = { + enableCache = true; + storageSchemas = '' + [carbon] + pattern = ^carbon\. + retentions = 60:90d + + [default] + pattern = .* + retentions = 60s:30d,300s:1y + ''; + }; + }; +} -- cgit v1.2.3