Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Collectd plugin which supports ESTP over ZeroMQ

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 collectd @ 9e46dab
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.rst
Octocat-spinner-32 zeromq_estp.c
README.rst

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 Subscribe>
    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 Publish>
    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 Subscribe, likewise Push socket can be used instead Publish. 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.

Something went wrong with that request. Please try again.