Filippo Giunchedi has submitted this change and it was merged.
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(-)
Approvals:
Filippo Giunchedi: Verified; Looks good to me, approved
diff --git a/modules/role/manifests/graphite/base.pp
b/modules/role/manifests/graphite/base.pp
index 65a3077..15ebd81 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
+ 'hourly' => {
+ 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: merged
Gerrit-Change-Id: I69e7d38b070f8c6348cc62f5fab808d56911e414
Gerrit-PatchSet: 4
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Gehel <[email protected]>
Gerrit-Reviewer: Filippo Giunchedi <[email protected]>
Gerrit-Reviewer: Gehel <[email protected]>
Gerrit-Reviewer: Yurik <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits