Hi On Wed, 21 Oct 2009 10:29:29 +0200, Florian Forster <[email protected]> wrote: > Hi Jean, > > On Thu, Oct 08, 2009 at 12:00:13PM +0200, Jean Baptiste FAVRE wrote: > > But the first step is to be able to get values. Therefore, I > > activated Unix Socket plugin and try to get data. > > yeah, currently you need to do polling for this. I'd much prefer if > there was an elegant way to switch the connection into a value sending > mode, kinda like a live-stream. > > I can basically think of two possibilities: > > GETLIVEVAL 500 > Registers a write callback and sends each value dispatched to that > write-callback to the remote side. After 500 values, removes the > write callback and waits for the next command. > This probably seems a bit artificial but preserves the request / > response semantic of the rest of the protocol. > > SETLIVEMODE > Registers a write callback and sends each value being dispatched to > the remote host. No more commands will be accepted and the sending > can only be stopped by closing the connection. This is likely what > many applications intend to do. > > Would that solve your problems? I was thinking more like
SUBSCRIBE 1 ^some/kind-of/regexp and UNSUBSCRIBE 1 to remove it But then SETLIVEMODE would be probably much easier to implement and filtering it in application won't eat much more CPU. Regards -- Mariusz Gronczewski (XANi) <[email protected]> GnuPG: 0xEA8ACE64 http://devrandom.pl
signature.asc
Description: PGP signature
_______________________________________________ collectd mailing list [email protected] http://mailman.verplant.org/listinfo/collectd
