pcp
[Top] [All Lists]

Re: [pcp] pcp2graphite - pcmd hostname in prefix under pmmgr (#78)

To: performancecopilot/pcp <pcp@xxxxxxxxxxxxxxxxxx>
Subject: Re: [pcp] pcp2graphite - pcmd hostname in prefix under pmmgr (#78)
From: "Frank Ch. Eigler" <notifications@xxxxxxxxxx>
Date: Wed, 24 Feb 2016 15:01:09 -0800
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1456354869; bh=eo/FPUS28U7BGGi/XHzM7rGqCJcFpOVkqdygzKC5i8w=; h=From:Reply-To:To:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=hb1kiL8FYrHWkudgcQ76gwPFyKXrJbcmNBwPnICQBkMM5a4ciQuDbHB3Z/FjpTQw3 xcZXO+q2aDLWQxXU9MlNS01+P4AwyicoPoOtkfEyJW4RK9uXKJ1wbtH7A9m824eCX+ TUN6d+Bt3O/hKjIgStoryfPXAniSynhFGpNOj6nA=
In-reply-to: <performancecopilot/pcp/issues/78@xxxxxxxxxx>
List-archive: https://github.com/performancecopilot/pcp
List-id: performancecopilot/pcp <pcp.performancecopilot.github.com>
List-post: <mailto:reply+00bd08b630fd833c789d98cec6347f19a5938946ee242cb192cf0000000112e5f83592a169ce081e74e7@reply.github.com>
List-unsubscribe: <mailto:unsub+00bd08b630fd833c789d98cec6347f19a5938946ee242cb192cf0000000112e5f83592a169ce081e74e7@reply.github.com>, <https://github.com/notifications/unsubscribe/AL0Itvh1tcWUUZg1Fhav24YFssYbJ0BWks5pni21gaJpZM4HiNk8>
References: <performancecopilot/pcp/issues/78@xxxxxxxxxx>
Reply-to: performancecopilot/pcp <reply+00bd08b630fd833c789d98cec6347f19a5938946ee242cb192cf0000000112e5f83592a169ce081e74e7@xxxxxxxxxxxxxxxx>

This could be accomplished with a small auxiliary shell script invoked by /etc/pcp/pmmgr/monitor

#! /bin/sh

assume pmmgr invocation as -h $HOSTSPEC

host="$2"
graphitehost=pmprobe -v -h "$host" pmcd.hostname | awk '{print $3}' # or something like that
exec pcp2graphite [...options...] -m "pcp.$graphitehost" -h "$host"


Reply to this email directly or view it on GitHub.

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