cloudant/bucky — pull request #7 by ojarva (2012-04-02 10:12:34+00:00)
Title: Per source prefix

This patch adds three configuration options for setting per source prefixes easily. It's not unusual to have different retention policy for collectd sources and for example statsd.

It's difficult to configure graphite to have retention policy for every collectd host - whole point of graphite is to be configuration free. In our setup with over 100 hosts collectd statistics are saved for 90 days with lower resolution, default is three years with one minute resolution, and for example "fast.app1.failures" is saved only for few days with high resolution.

# prefix_source_name prefixes collectd and metricsd sources
# with source name ("collectd.hostname.metric"). This is useful
# when you want to have different retention policies for
# data, depending on source.
prefix_source_name = False

# This sets special per-name source. These override
# "prefix_source_name" option - if these are set, appropriate
# source events are always prefixed.
#prefix_source_name_collectd = "collectd"
#prefix_source_name_metricsd = "metricsd"

Also, .gitignore line for build/ directory.