Skip to content

Commit

Permalink
Collectd 'daemon' module
Browse files Browse the repository at this point in the history
Per-cpu value list registry with polling -> udp send

- Allows registration of metric values associated with
  collectd id path (plugin/[plugin-inst/]type[/type-instance]).
- Values are broadcast/sent at periodic intervals. (config)
- Config through seastar.conf / app-template.
- Value registration can be revoked safely, either manually or
  through anchor.

Signed-off-by: Calle Wilund <[email protected]>
  • Loading branch information
elcallio authored and avikivity committed Oct 22, 2014
1 parent 8b737c9 commit 40db2c0
Show file tree
Hide file tree
Showing 5 changed files with 846 additions and 0 deletions.
1 change: 1 addition & 0 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
'core/posix.cc',
'core/memory.cc',
'core/resource.cc',
'core/scollectd.cc',
'util/conversions.cc',
'net/packet.cc',
'net/posix-stack.cc',
Expand Down
3 changes: 3 additions & 0 deletions core/app-template.hh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <fstream>
#include <cstdlib>
#include "core/reactor.hh"
#include "core/scollectd.hh"

namespace bpo = boost::program_options;

Expand All @@ -22,6 +23,7 @@ public:
;
_opts.add(reactor::get_options_description());
_opts.add(smp::get_options_description());
_opts.add(scollectd::get_options_description());
};

boost::program_options::options_description_easy_init add_options() {
Expand All @@ -47,6 +49,7 @@ public:
return 1;
}
smp::configure(configuration);
scollectd::configure(configuration);
_configuration = {std::move(configuration)};
engine.when_started().then(func).rescue([] (auto get_ex) {
try {
Expand Down
Loading

0 comments on commit 40db2c0

Please sign in to comment.