[Libmetrics-devel] Re: Metrics 2.0?
Status: Beta
Brought to you by:
loosifer
From: Tim N. <arc...@we...> - 2005-04-13 01:49:15
|
On Tue, 12 Apr 2005, Luke Kanies wrote: > On Mon, 2005-04-11 at 11:17 +1000, Tim Nelson wrote: >> On Fri, 8 Apr 2005, Luke Kanies wrote: >>> Well, the real problem here is that the functions aren't meant to take >>> arguments, and the disk function obviously needs to do so. >> >> I was kinda wanting to myself for something else, but if we use >> the "get function" thing I talk about in the other mail, that'll solve the >> problem for me. But not for disk :). And disks aren't the only things >> which have multiples. Eg. >> - CPUs >> - Load averages >> - Network interfaces >> >> As time goes on, I suspect that multiples of things are going to >> become more popular. > > I agree with that statement, but I don't think your solution quite > covers it, unless the va_start stuff does the rest. It seems that for Yes :). > most things that involve multiple numbers (disks, cpu, load, network), > each type of metric needs a function to collect all of the information > and store it in some globally accessable place, and then there needs to > be a specifically named metric for each instance (each disk, each cpu > type, etc.) that one can use to retrieve each of the values. Hmm. The problem with storing information in a global place is, what if the source of the information changes it? That's not a problem with the current libmetrics, but it is with the distropicker thing I wrote, and a problem I'll need to deal with (but copeable :) ). > Is that basically what you had in mind? Is the collection function what > you are calling 'va_start'? > > Do you have an idea for such an architecture? Read "man va_start", and then tell me whether you still want these answered :). > BTW, I've CC'ed the libmetrics-devel list, so we can start getting these > emails on record. Please continue in that vein. I was intending to do that as soon as I'd subscribed (which I now have). Also, I'm going to have a busy week here, so I won't get back to working on libmetrics in that time. -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim...@we... http://www.webalive.biz/ "Your Business, Your Web, Your Control" |