pcp
[Top] [All Lists]

Re: Param to add Hostname into pcp2graphite metrics?

To: Alejandro <cdgraff@xxxxxxxxx>
Subject: Re: Param to add Hostname into pcp2graphite metrics?
From: fche@xxxxxxxxxx (Frank Ch. Eigler)
Date: Fri, 04 Sep 2015 15:47:21 -0400
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <CALJtzxCGwMHVJ4-P_fCHupqNaFgVOU42FnEgxOtTVQqgc+M7xQ@xxxxxxxxxxxxxx> (cdgraff@xxxxxxxxx's message of "Fri, 4 Sep 2015 16:28:56 -0300")
References: <CALJtzxCGwMHVJ4-P_fCHupqNaFgVOU42FnEgxOtTVQqgc+M7xQ@xxxxxxxxxxxxxx>
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
cdgraff wrote:

> I'm implementing pcp2graphite, all works perfect with Influxdb, with Graphite
> handler, just I saw that all the metrics don't come with HostName to
> identify...
> [...]

The way to do this is pcp2graphite's "-m PREFIX" option.  The given string
is passed to graphite as a prefix for all metric names.  The default is
"pcp."; you could make it "pcp.$insert_hostname_here.".

- FChE

<Prev in Thread] Current Thread [Next in Thread>