Skip to content

Instantly share code, notes, and snippets.

@chrisboulton
Last active December 15, 2015 14:09
Show Gist options
  • Select an option

  • Save chrisboulton/5272872 to your computer and use it in GitHub Desktop.

Select an option

Save chrisboulton/5272872 to your computer and use it in GitHub Desktop.
Graphite aggregation rules for StatsD
[statsd_lower]
pattern = ^stats\..*\.lower(_[0-9]+)?$
aggregationMethod = min
xFilesFactor = 0.1
[statsd_upper]
pattern = ^stats\..*\.upper(_[0-9]+)?$
aggregationMethod = max
xFilesFactor = 0.1
[statsd_sum]
pattern = ^stats\..*\.sum(_[0-9]+)?$
aggregationMethod = sum
xFilesFactor = 0
[statsd_count]
pattern = ^stats\..*\.count$
aggregationMethod = sum
xFilesFactor = 0
[statsd_legacy_counts]
pattern = ^stats_counts\..*
aggregationMethod = sum
x_files_factor = 0
[zzzzz_default_average]
pattern = .*
aggregationMethod = average
xFilesFactor = 0.3
# https://github.com/etsy/statsd/issues/22#issuecomment-4251091
graphite::storage-aggregation { 'statsd_lower':
pattern => '^stats\..*\.lower(_[0-9]+)?$',
method => 'min',
x_files_factor => 0.1,
}
graphite::storage-aggregation { 'statsd_upper':
pattern => '^stats\..*\.upper(_[0-9]+)?$',
method => 'max',
x_files_factor => 0.1,
}
graphite::storage-aggregation { 'statsd_sum':
pattern => '^stats\..*\.sum(_[0-9]+)?$',
method => 'sum',
x_files_factor => 0,
}
graphite::storage-aggregation { 'statsd_count':
pattern => '^stats\..*\.count$',
method => 'sum',
x_files_factor => 0,
}
graphite::storage-aggregation { 'zzzzz_default_average':
pattern => '\.*',
method => 'average',
x_files_factor => 0.3,
}
# Legacy
graphite::storage-aggregation { 'statsd_legacy_counts':
pattern => '^stats_counts\..*',
method => 'sum',
x_files_factor => 0,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment