Skip to content

A cpp client for the Etsy StatsD server.

License

Notifications You must be signed in to change notification settings

shannonwarren/statsd-cpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StatsD client cpp Build Status

A cpp client for the Etsy StatsD server.

Install

$ make && make install

Test

$ make test

Usage

#include <statsd.hpp>

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

License

statsd-cpp is licensed under the MIT license.

About

A cpp client for the Etsy StatsD server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 80.5%
  • CMake 14.8%
  • Makefile 4.7%