Skip to content

fschaefer/collectd-zeromq-estp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collectd Plugin for ESTP over ZeroMQ

The ESTP is Extensible Statistics Transmission Protocol. The protocol is intended to become standard protocol for submission statistics data by zeromq applications. More info can be found here:

http://github.com/estp/estp

The plugin allows both to receive data from zeromq for storing by collectd and to publish collectd-provided statistics to zeromq socket. So it's capable to send data between collectd instances too

Building

The following is a basic build process:

git submodule update --init
make
sudo make install

Note: the build process clones full collectd repository and runs "configure" on it. You can ignore the whole configure output, as nothing except header files are used from collectd itself. If there is better way to build collectd plugin please send pull requests.

Configuration

The following is example config, which accepts data:

LoadPlugin zeromq_estp
<Plugin "zeromq_estp">
  <Socket SUB>
    HWM 1000
    Bind "tcp://*:6666"
  </Socket>
</Plugin>

Any zeromq address can be specified for Bind.

The following is example config, which sends data from collectd to another collectd instance or any other processing application:

LoadPlugin zeromq_estp
<Plugin "zeromq_estp">
  <Socket PUB>
    HWM 1000
    Connect "tcp://host.example.com:6666"
  </Socket>
</Plugin>

Note: if you have write filters enabled, do not forget to add "zeromq_estp" plugin to your "write" target.

The Connect and Bind directives both can be used in any socket types, and can be used multiple times. PULL socket can be used instead SUB, likewise PUSH socket can be used instead PUB. However, this is rarely useful in practice. For more information refer to zeromq documentation.

The HWM directive shows the maximum amount of messages buffered. You should set it because otherwise zeromq memory usage may be unbounded.

About

Collectd plugin which supports ESTP over ZeroMQ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%