pcp
[Top] [All Lists]

Re: [pcp] One pmwebapi against multiple pcp running hosts

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>, nathans@xxxxxxxxxx
Subject: Re: [pcp] One pmwebapi against multiple pcp running hosts
From: Jun Wang <junwang123@xxxxxxxxx>
Date: Thu, 4 Apr 2013 16:31:50 -0700
Cc: PCP <pcp@xxxxxxxxxxx>, Dev Priya <devpriya00@xxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=XanZ5pLOc7xxKKHWBJYZtwCeBtMQOkV6jzWx/HHkYoE=; b=R5gaVegMV0eI40NArj4XhZAgofcqyzMo4sMBc8C07DlUTxxA09z+CgPxmvM4+bUPy3 j4REvlrQd02ixVtvp9gDh6IcHwzPllakaF53yryrenKSAS09+5rXWCipwBXsCqYvPnOI i65mVDofIGDxcfUjRDtNq1cm+AOxs0nieijUFqJEdVVHgWZftk0xHz8N9XU6BJ5PA8Hg euyiM9om80CF3Uh/yEF1XG/+/lYjPKMOmnPQ6Wik8/PbKuqyJkQkyqOF7YFqMT7RcFfr DhTQVLfCrsus0K6MMO3wB8jecEYCUUyOmZBX77KmstwTo7UqV79kcrh2x1O7C+Vswwg1 yKIA==
In-reply-to: <CADPXOekTUhrF-82ZNALf68rFfSftqOGVM0ahVEqxSVgs+MMRyw@xxxxxxxxxxxxxx>
References: <CADPXOeknVWyG8ZWgEcnVnxtHoYr3tq+g5EVof4AdAhxGZH4eiA@xxxxxxxxxxxxxx> <20130402205337.GD3659@xxxxxxxxxx> <CADPXOe=NbKrgxCtvePnAMM_MCUHibdWseAni5p+_e4k4Hwp1ow@xxxxxxxxxxxxxx> <20130402222722.GE3659@xxxxxxxxxx> <CADPXOekTUhrF-82ZNALf68rFfSftqOGVM0ahVEqxSVgs+MMRyw@xxxxxxxxxxxxxx>
Hi Frank/Nathan,

I was trying to use the summary PMDA and have two questions.

1. I wasn't sure whether the followings are right.
2. We noticed that we lost the Unit for summary.avg.memory in pmwebapi. mem.util.used is using u64 and kbyte, but the summary is a double (no kbyte unit). I tried to add "summary.avg.memory = avg_host $memoryhosts Kbyte", but got a syntax error.
Can someone help?

# pwd
/var/lib/pcp/pmdas/summary

# Âdiff -u expr.pmie.orig expr.pmie.goodÂ
--- expr.pmie.orig 2013-04-04 22:26:06.000000000 +0000
+++ expr.pmie.good 2013-04-04 23:20:42.000000000 +0000
@@ -38,3 +38,10 @@
Â
Â// proportion of network interfaces that are busy
Âsummary.netif.busy = (count_inst $netio > 400) / (count_inst $netio >= 0);
+
+// average cpu utilization
+hosts = ":'atla-anf-02-sr1' :'atla-anf-03-sr1'";
+cpuhosts = "kernel.all.cpu.user $hosts";
+memoryhosts = "mem.util.used $hosts";
+summary.avg.cpu = avg_host $cpuhosts;
+summary.avg.memory = avg_host $memoryhosts;
[root@atla-aap-09-sr1 summary]# Âdiff -u pmns.orig pmns
--- pmns.orig 2013-04-04 22:25:56.000000000 +0000
+++ pmns 2013-04-04 22:26:24.000000000 +0000
@@ -6,6 +6,7 @@
 cpu
 disk
 netif
+ Â Â Â ÂavgÂ
Â}
Â
Âsummary.cpu {
@@ -22,3 +23,8 @@
 packets SYSSUMMARY:0:6
 busy SYSSUMMARY:0:7
Â}
+
+summary.avg {
+ cpu SYSSUMMARY:0:8
+ memory ÂSYSSUMMARY:0:9
+}



On Tue, Apr 2, 2013 at 11:17 PM, Dev Priya <devpriya00@xxxxxxxxx> wrote:
Hi Frank,

The latest version works like a charm :)

Thanks a lot,
Dev


On Tue, Apr 2, 2013 at 3:27 PM, Frank Ch. Eigler <fche@xxxxxxxxxx> wrote:
Hi -

> [...]
> I verified it by manually CURLing the url too. Even in verbose mode the
> output is too less to find out why the context creation might have failed.
> Is there a way to increase the verbosity of the logs even further?

The current fche/pmwebapi branch contains a fix for a thinko that
could explain misbehaving context creation. ÂWith one level of "pmwebd -v"
verbosity, you get a pmErrStr explanation for the failing contexts.

- FChE


_______________________________________________
pcp mailing list
pcp@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/pcp


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