Gehel has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/305238

Change subject: Introduce a hourly storage schema in graphite
......................................................................

Introduce a hourly storage schema in graphite

Maps needs to collect hourly metrics.

This introduces an hourly schema which can be used to store hourly metric,
with 1-day aggregation after 1 year. This follows the same pattern as the
existing daily schema.

The space gained by this is fairly small (130k per metric vs 300k per metric
for the default schema), but will help not having holes in time series for
metrics collected hourly.

Bug: T143048
Change-Id: I69e7d38b070f8c6348cc62f5fab808d56911e414
---
M modules/role/manifests/graphite/base.pp
1 file changed, 9 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/38/305238/1

diff --git a/modules/role/manifests/graphite/base.pp 
b/modules/role/manifests/graphite/base.pp
index 65a3077..e62e04e 100644
--- a/modules/role/manifests/graphite/base.pp
+++ b/modules/role/manifests/graphite/base.pp
@@ -38,14 +38,21 @@
     class { '::graphite':
         # First match wins with storage schemas
         storage_schemas     => {
-            # Retain daily metrics for 25 years
+            # Retain daily metrics for 25 years. Per metric size: 109528 bytes
             'daily'   => {
                 pattern    => '^daily\..*',
                 retentions => '1d:25y',
             },
+            # Retain aggregated data at 1 hour resolution for 1 year and at
+            # 1 day resolution for 5 years. Per metric size: 127060 bytes
+            'daily'   => {
+                pattern    => '^hourly\..*',
+                retentions => '1h:1y,1d:5y',
+            },
             # Retain aggregated data at a one-minute resolution for one week; 
at
             # five-minute resolution for two weeks; at 15-minute resolution for
-            # one month; one-hour resolution for one year, and 1d for five 
years
+            # one month; one-hour resolution for one year, and 1d for five 
years.
+            # Per metric size: 331000 bytes
             'default' => {
                 pattern    => '.*',
                 retentions => '1m:7d,5m:14d,15m:30d,1h:1y,1d:5y',

-- 
To view, visit https://gerrit.wikimedia.org/r/305238
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I69e7d38b070f8c6348cc62f5fab808d56911e414
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Gehel <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to