Add statsd compatible schema to graphite.
Most of this is from the statsd README. Change-Id: I22e4619375c10de2cb010b06071ed3b473197e92 Reviewed-on: https://review.openstack.org/18737 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
3e0ad330c6
commit
3be3807eea
@ -160,6 +160,12 @@ class graphite(
|
||||
require => File['/etc/graphite'],
|
||||
}
|
||||
|
||||
file { '/etc/graphite/storage-aggregation.conf':
|
||||
mode => '0444',
|
||||
content => template('graphite/storage-aggregation.conf.erb'),
|
||||
require => File['/etc/graphite'],
|
||||
}
|
||||
|
||||
file { '/usr/local/lib/python2.7/dist-packages/graphite/local_settings.py':
|
||||
mode => '0444',
|
||||
content => template('graphite/local_settings.py.erb'),
|
||||
|
23
modules/graphite/templates/storage-aggregation.conf.erb
Normal file
23
modules/graphite/templates/storage-aggregation.conf.erb
Normal file
@ -0,0 +1,23 @@
|
||||
[min]
|
||||
pattern = \.min$
|
||||
xFilesFactor = 0.1
|
||||
aggregationMethod = min
|
||||
|
||||
[max]
|
||||
pattern = \.max$
|
||||
xFilesFactor = 0.1
|
||||
aggregationMethod = max
|
||||
|
||||
[sum]
|
||||
pattern = \.count$
|
||||
xFilesFactor = 0
|
||||
aggregationMethod = sum
|
||||
|
||||
[default_average]
|
||||
pattern = .*
|
||||
xFilesFactor = 0.3
|
||||
aggregationMethod = average
|
||||
|
||||
[stats_counts]
|
||||
pattern = ^stats_counts\..*
|
||||
aggregationMethod = sum
|
@ -11,6 +11,10 @@
|
||||
pattern = ^carbon\.
|
||||
retentions = 60:90d
|
||||
|
||||
[default_1min_for_3years]
|
||||
[default]
|
||||
pattern = .*
|
||||
retentions = 60s:3y
|
||||
retentions = 60:90d
|
||||
|
||||
[stats]
|
||||
pattern = ^stats.*
|
||||
retentions = 10:2160,60:10080,600:262974
|
||||
|
Loading…
Reference in New Issue
Block a user