An open API service indexing awesome lists of open source software.

https://github.com/euskadi31/statsd-cpp

A cpp client for the Etsy StatsD server.
https://github.com/euskadi31/statsd-cpp

c-plus-plus linux macos statsd statsd-client statsd-cpp windows

Last synced: 2 months ago
JSON representation

A cpp client for the Etsy StatsD server.

Awesome Lists containing this project

README

        

StatsD client cpp [![CMake](https://github.com/euskadi31/statsd-cpp/actions/workflows/cmake.yml/badge.svg)](https://github.com/euskadi31/statsd-cpp/actions/workflows/cmake.yml)
=================

A cpp client for the StatsD server.

Supported on MacOS, Unix, Windows

Install
-------

~~~shell
$ make && make install
~~~

Test
----

~~~shell
$ make test
~~~

Usage
-----

~~~cpp
#include

int main(int argc, char const *argv[])
{
statsd::open("127.0.0.1", 8125);

statsd::timing("test.site.homepage.load", 1500);

statsd::increment("test.server.http.error.404");

statsd::decrement("test.server.http.error.404");

statsd::count("test.site.auth.success", 4);

statsd::gauge("a.gauge.node", 8);

statsd::set("a.graphite.set", 12);

statsd::close();

return 0;
}
~~~

Documentation
-------------

see the [statsd.hpp](include/statsd.hpp)

License
-------

statsd-cpp is licensed under [the MIT license](LICENSE.md).