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.
- Host: GitHub
- URL: https://github.com/euskadi31/statsd-cpp
- Owner: euskadi31
- License: mit
- Created: 2014-08-02T05:46:33.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-08-05T19:27:23.000Z (10 months ago)
- Last Synced: 2025-03-18T03:22:28.112Z (2 months ago)
- Topics: c-plus-plus, linux, macos, statsd, statsd-client, statsd-cpp, windows
- Language: C++
- Homepage:
- Size: 51.8 KB
- Stars: 14
- Watchers: 4
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
StatsD client cpp [](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
#includeint 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).