A c++ client for the native protobuf protocol of ffwd.
# test1.cpp
#include <ffwd.hpp>
const ffwd::client c;
const ffwd::metric foo = ffwd::metric().key("foo");
int main(int argc, char* argv[]) {
c.send(foo.attribute("id", "foo").value(1));
c.send(foo.attribute("id", "bar").value(2));
return 0;
}
$> g++ test1.cpp -lffwd-client -o test1
$> ./test1
This project also comes with the libffwd-client-send
command for
generating events and metrics.
libffwd-client currently has to be built and distributed through source.
Dependencies are.
- libffwd-client
- protobuf
- ffwd-client-send (optional)
- boost 1.53
$> cmake .
...
$> make
...
$> sudo make install
- Fork libffwd-client from github and clone your fork.
- Hack.
- Push the branch back to GitHub.
- Send a pull request to our upstream repo.