<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial">On Sat, Aug 16, 2014 at 11:31 AM, David Blewett </span><span dir="ltr" style="font-family:arial"><<a href="mailto:david@dawninglight.net" target="_blank">david@dawninglight.net</a>></span><span style="font-family:arial"> wrote:</span></div>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">
<div style="font-family:arial,helvetica,sans-serif">It seems there are 3 options for doing this:</div><div style="font-family:arial,helvetica,sans-serif">
<br></div><div style="font-family:arial,helvetica,sans-serif">* Use a PreCache filter to strip off the hostname from all statsd plugin metric values</div><div style="font-family:arial,helvetica,sans-serif">
* Run a single collectd instance after all others that uses the aggregation plugin to sum values from all statsd metrics</div><div style="font-family:arial,helvetica,sans-serif">* Run an additional collectd instance on each node with a blank Hostname value, purely for statsd</div>
</div></blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">So I've been trying to implement option 1, but have not had any luck. Here is the config I am using:</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><Chain "PreCache"></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
<Rule></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"> <Match "regex"></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"> Plugin "^statsd$"</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"> </Match><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"> <Target "set"></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
Host "rf"</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"> </Target></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"> </Rule><br>
</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"></Chain></div><br class=""><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">However, it doesn't appear that the Host value is getting set to "rf". I've tested by using the csv plugin to write to either stdout or a dir, but the host is always the hostname of the system:</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">PUTVAL kell/statsd/derive-foo interval=10.000 1409108335.872:1</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I'm trying to get the identifier to become rf/statsd/derive-foo , so that multiple hosts values get input into a single time series in InfluxDB.</div>
<br><br clear="all"><div>Thanks,<br><br>David Blewett</div></div></div>