pcp
[Top] [All Lists]

Re: [pcp] PcP query using monitors.

To: Deepthi Dharwar <deepthi@xxxxxxxxxxxxxxxxxx>
Subject: Re: [pcp] PcP query using monitors.
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue, 16 Jun 2015 21:54:42 -0400 (EDT)
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <5580436F.60707@xxxxxxxxxxxxxxxxxx>
References: <5580436F.60707@xxxxxxxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: +gM4xV8+IZwWR9PGVi4m4XNpcxeJsw==
Thread-topic: PcP query using monitors.
Hi Deepthi,

----- Original Message -----
> Hi all,
> 
> I am relatively a new user exploring PcP.
> My use case being, invoking already supported PcP monitors like
> 'pmval' directly from an application.
> 
> I am aware of API bindings that PcP exposes. These are to connect
> to the daemon pmcd and get the values of counters directly but
> this does not involve any post processing of data. As far as I
> understand post processing is done as part of monitors.
> 
> Are there monitor APIs that can be invoked from an application ?
> 

It sounds like the pmRegisterDerived(3) API might suit here.  Also
see the 'ENVIRONMENT' section of the PCPIntro(1) man page where it
describes the PCP_DERIVED_CONFIG env variable - this may allow you
to use derived metrics in your application without modifications.

cheers.

--
Nathan

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