[collectd] Aggregating statsd metrics
Bill Schwanitz
bilsch at gmail.com
Wed Aug 27 16:23:01 CEST 2014
David,
I’m doing something similar on an interface rename. I think the big difference is that I have a target return in there - try adding it as I have it below?
Bill
#
# Filtering chains
#
LoadPlugin "match_regex"
LoadPlugin "target_replace"
LoadPlugin "target_set"
<Chain "PreCache">
<Rule “foo_iface">
<Match "regex">
Plugin “^foo$"
PluginInstance “^eth0$"
</Match>
<Target "set">
PluginInstance “bar"
</Target>
Target "return"
</Rule>
<…>
</Chain>
On Aug 27, 2014, at 10:16 AM, David Blewett <david at dawninglight.net> wrote:
> On Tue, Aug 26, 2014 at 10:58 PM, David Blewett <david at dawninglight.net> wrote:
> So I've been trying to implement option 1, but have not had any luck.
>
> It ended up being pilot error. I made 2 mistakes that made my chain not work:
>
> 1. Didn't explicitly load the target_set plugin
> 2. Had a typo in the chain name
>
> Here is my working config, for posterity:
>
> LoadPlugin "match_regex" # we want to use this for our Matching
> LoadPlugin "target_set" # This isn't builtin
> <Chain "PreCache">
> <Rule> # Strip Host values from "statsd" metrics
> <Match regex>
> Plugin "^statsd$"
> </Match>
> <Target "set">
> Host "rf"
> </Target>
> </Rule>
> </Chain>
>
> Thanks,
>
> David Blewett
>
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd
More information about the collectd
mailing list