From 730b938ec3d342c9bef3dd123fd817bdf963c66c Mon Sep 17 00:00:00 2001
From: K Jonathan Harker <k.jonathan.harker@hp.com>
Date: Mon, 18 Aug 2014 14:16:22 -0700
Subject: [PATCH] Reduce graphite's stats retention policy

In order to make more efficient use of disk space, let's change the
default retention policy. Being able to react to changes with a
10-seccond precision less likely to be usefule as the data gets older,
and our historic data does not give much insight beyond a 1-hour
precision.

This change does not effect already created metrics, changing that would
require a manual run of whisper-resize.py on the data directories. This
only effects new metrics.

Old retention:
  10-second precision for 6 hours
  60-second precision for 7 days
  10-minute precision for 5 years

New retention
  10-second precision for 8 hours
  60-second precision for 7 days
  1-hour precision for 1 year
  1-day precision for 5 years

Change-Id: I08d73d092fc73c271e9092f551f38f395e006ca4
---
 modules/graphite/templates/storage-schemas.conf.erb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/graphite/templates/storage-schemas.conf.erb b/modules/graphite/templates/storage-schemas.conf.erb
index 99c0922681..7e568a474a 100644
--- a/modules/graphite/templates/storage-schemas.conf.erb
+++ b/modules/graphite/templates/storage-schemas.conf.erb
@@ -13,7 +13,7 @@ retentions = 60:90d
 
 [stats]
 pattern = ^stats.*
-retentions = 10:2160,60:10080,600:262974
+retentions = 10s:8h,60s:7d,1h:1y,1d:5y
 
 [default]
 pattern = .*