pcp
[Top] [All Lists]

Re: writing a PMDA: multiple instances to a metric

To: Nathan Scott <nathans@xxxxxxx>
Subject: Re: writing a PMDA: multiple instances to a metric
From: Madhu Sudhan R Tera <mst9696@xxxxxxxxxxx>
Date: Wed, 3 Oct 2001 22:38:58 -0500 (CDT)
Cc: pcp@xxxxxxxxxxx
In-reply-to: <20011004091558.K472533@wobbly.melbourne.sgi.com>
Sender: owner-pcp@xxxxxxxxxxx
Hello Mr Nathan!
I appreciate your quick response.
Do you mind if I ask one more question??

My question, in simple.c the number of instances is already known
at the beginning of the program.for example simple.color has 
three and are known already.
But in our case, the number of instances that pid or saddr metrics
have is the number of nodes in the linked list( each node is a structure
contaninig pid, saddr,daddr,sport,dport,and bandwidth).And this
list is generated in a method which you asked us to call in fetch routine,
in your previous mail.So i do not know before hand how many instances my
metric has.Is my pmda design wrong??If not how should i proceed?

Thank you very much!
regards,
Madhu Tera,
Sadanand.



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