Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Per source prefix #7

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
5 participants

ojarva commented Apr 2, 2012

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.

Exactly what I was looking for and implementation looks neat. +1

Collaborator

banjiewen commented May 24, 2012

It would be nice to add this as an extension of the existing name_prefix and name_postfix configuration parameters - perhaps we could allow those values to be functions of the host and nameparts parameters. It'd be somewhat more powerful that way.

At the very least, you should use a dict of prefix_source_name parameters, but I think a more clever approach would be great.

Owner

trbs commented Mar 13, 2014

Is this pull request still relevant ? and if so could you update it to the current version of Bucky ?

mmoya commented Apr 23, 2014

+1

Owner

trbs commented Apr 25, 2014

For statsd we have statsd_global_prefix seems to make sense to me to expand that system to other sources as well, so collect_global_prefix and metricd_global_prefix

@banjiewen do you mean some kind of formatting options for name_* configuration options ? So you could do something like name_prefix_parts = ["%(source)s", "%(host)s"]

Owner

trbs commented Sep 30, 2014

Anybody willing to breath some new live into this issue ?

Owner

trbs commented Aug 20, 2016

Closing this for now if somebody wants to revive this PR or something similar please open a new one.

@trbs trbs closed this Aug 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment