Looks like this has been skirted around some, without necessarily being
completely answered.
Martin, what _exactly_ are you after?
The names of the network interfaces are included in the instance
names for the network.interface.* metrics, e.g.
$ pminfo -f network.interface.total.bytes
network.interface.total.bytes
inst [0 or "lo"] value 7967920
inst [1 or "eth0"] value 0
We don't have the IP address(es) for each network interface, but
looks like we could get that by using the same SIOCGIF* ioctl()s
that ioconfig(1) uses.
On Wed, 22 Aug 2001, Martin Knoblauch wrote:
> Hi,
>
> I am currently evaluating performance monitoring/measuring tools for a
> mostly Linux based cluster environment. Due to some history, PCP came to
> my mind :-)
>
> I installed the binary package and it seems to do a lot of the things
> we need. One thing I am missing is the number and the names of the
> network interfaces.
>
> A quick look at the sources seems to indicate that the information
> itself is available, but not exported. Am I correct with this?
Not sure what you mean here, perhaps more detail would help.
> If I wanted to add the fileds to the network metrics, what cautions dio
> I need to observe. I don't want to break things ...
Brieflly (refer to the PCP Programmer's Guide, available from
techpubs.sgi.com for more detail), you need to:
- choose a name
- choose a PMID
- define the metadata
- integrate the new metric, its descriptor (metabata), fetch method
and any associated instance domain information into the PMDA
- add help text to describe the new metric
|