Collectd

Collectd wrapper class

Encapsulate communication with the Collectd socket, as well as parsing of its messages.

Note: You must be careful when mixing calls. Returned data are transient (sits in an internal buffer), and might get invalidated on the next call to a member function.

For example, don't do:

Collectd inst = ...;
foreach (v; inst.listval())
{
    inst.getval!(Counter)(v);
}
`

Because this might invalidate the data returned by listval() on the first call to getval()

Note: PUTNOTIF is not implemented

Constructors

this
this(istring socket_path)

Constructor

Members

Functions

putval
void putval(Identifier id, T data, PutvalOptions options)

Submits one or more values, identified by Identifier to the daemon which will dispatch it to all its write-plugins

Structs

PutvalOptions
struct PutvalOptions

Options that can be passed to Putval

Value
struct Value

Values returned by 'listval'

Meta