[collectd] Help needed - Target replace
Shibashish
shib4u at gmail.com
Tue Oct 16 20:44:13 CEST 2018
Hi,
I have a collectd config as below...
<Plugin write_graphite>
<Carbon>
Host ...
...
Prefix "collectd.production.XYZ."
Postfix ""
StoreRates true
AlwaysAppendDS false
EscapeCharacter "_"
</Carbon>
</Plugin>
I want to "target replace" XYZ with ABC-1. But the following isn't working.
LoadPlugin "target_replace"
<Chain "PreCache">
<Rule "add_abc">
<Target "replace">
Plugin "\\<XYZ\\>" "ABC-1"
</Target>
</Rule>
</Chain>
Kindly help with the correct syntax.
If the above is not possible, what is the best way to add a string like
"ABC-1" just before the Host? The final graphite path would look
like collectd.collectd_vsphere.production.ABC-1.abc_xyz_com.snmp.percent-CPUCore1
Thanks in advance.
--
Shib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20181017/7bf81734/attachment.html>
More information about the collectd
mailing list