[prev in list] [next in list] [prev in thread] [next in thread] 

List:       collectd
Subject:    Re: [collectd] Grouping the output of collectd in graphite
From:       Giovanni Torres <giovanni.torres () gmail ! com>
Date:       2016-01-30 0:52:20
Message-ID: CAG3yudhC_HfewNVGAh0TopTXYP5zYLUf4k4evj5A9=VtXBefVA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Fri, Jan 29, 2016 at 3:31 PM Vaughn Wernersbach <
Vaughn.Wernersbach@bidstrading.com> wrote:

> Does replace support capture groups?
>
>
>
> For instance, I'd like to rename hostname from server.domain.com to
> domain.server (so things are better organized on the graphite side).
>
Doesn't look so after a quick look at target_replace.c, but I could be
wrong.
If you only have a few domains, however, you could probably do this
manually in the target replace section:
    Host "\\<server.example.com\\>" "example.server"

Giovanni

[Attachment #5 (text/html)]

<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Jan 29, 2016 \
at 3:31 PM Vaughn Wernersbach &lt;<a \
href="mailto:Vaughn.Wernersbach@bidstrading.com">Vaughn.Wernersbach@bidstrading.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Does \
replace support capture groups?<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">For \
instance, I'd like to rename hostname from <a href="http://server.domain.com" \
target="_blank">server.domain.com</a> to domain.server (so things are better \
organized on the graphite side).     <u></u><u></u></span></p> \
</div></div></blockquote><div>Doesn&#39;t look so after a quick look at \
target_replace.c, but I could be wrong. <br>If you only have a few domains, however, \
you could probably do this manually in the target replace section:

<br>       Host &quot;\\&lt;<a \
href="http://server.example.com">server.example.com</a>\\&gt;&quot; \
&quot;example.server&quot;<br><br></div><div>Giovanni<br></div><div><pre><br></pre></div></div></div>




_______________________________________________
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic