[collectd] Plain text protocol question
XANi
xani666 at gmail.com
Wed Oct 21 11:43:26 CEST 2009
Hi
On Wed, 21 Oct 2009 10:29:29 +0200, Florian Forster <octo at verplant.org>
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) <xani666 at gmail.com>
GnuPG: 0xEA8ACE64
http://devrandom.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20091021/d9d675d2/attachment.pgp
More information about the collectd
mailing list