Sorry Martin, this mail was misplaced in the bog of eternal stench (aka my
inbox) and was only recently re-discovered ...
On Mon, 27 Aug 2001, Martin Knoblauch wrote:
> kenmcd@xxxxxxxxxxxxxxxxx wrote:
> >
> > 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.
> >
> Hi Ken,
>
> I found out about the instance names shortly after posting my question,
> so basically I am happy although I think that explicitely exporting the
> number of interfaces and the names might be useful to some.
We've tended to avoid exporting replicated information in most cases.
In practical terms ...
pminfo -f ... | sed | sort -u
is a far cheaper way to extract a list of instance names (it is
most often needed in shell scripts, in our experience).
And
pminfo -f ... | grep ' value ' | wc -l
is a far cheaper way to count the number of instances.
The nice thing about this simple approach is it works for _any_
metric with an underlying instance domain, while fending off
requests to add information like this to the PMDAs ... 8^)>
As usual, if you feel strongly about this, feel free to extend
the PMDA and send us the patches.
> Thanks
> Martin
>
> > >
> > > 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.
> >
>
> Now, I found that the info is stored, but I did not see the "instance"
> concept :-)
|