Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A C client library for the etsy/statsd daemon

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 libstatsdc added support for common prefix
Octocat-spinner-32 m4
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 AUTHORS
Octocat-spinner-32 COPYING
Octocat-spinner-32 ChangeLog
Octocat-spinner-32 INSTALL
Octocat-spinner-32 Makefile.am
Octocat-spinner-32 NEWS
Octocat-spinner-32 README
Octocat-spinner-32 configure.ac
README

About
---------------------------------------------------------------------------------

  libstatsdc is a C client library to the etsy/statsd statistics daemon.

  For more info, see :
    * http://codeascraft.etsy.com/2011/02/15/measure-anything-measure-everything/
    * https://github.com/etsy/statsd

---------------------------------------------------------------------------------


Usage
---------------------------------------------------------------------------------

  Interface documented in libstatsdc/statsdc.h

  See the accompanying src/example.c file for example usage

---------------------------------------------------------------------------------


Installation instructions
---------------------------------------------------------------------------------

  Follow the instructions in INSTALL file

  If you cloned from a repo and you're lacking the "./configure" script,
  first run:

    autoreconf --install

---------------------------------------------------------------------------------


Notes
---------------------------------------------------------------------------------

  1. While UDP is fire-and-forget, this library may block on DNS operations in
  statsdc_reconnect

    If you'd like guaranteed non-blocking behavior, ensure:

    * Supply the host as an IP address string, which would not require DNS
      resolution
    * Guarantee fast DNS operations by your OS (via /etc/hosts for example)
      or via upstream DNS servers and/or caching proxies

  2. If supplying sample_rate != 1, rand() will internally be called.  However
     srand() will not be called.  You should srand() once early on in your
     application to properly seed the PRNG.

---------------------------------------------------------------------------------


Copyright
---------------------------------------------------------------------------------

  This code is Copyright 2011 Mina Naguib.

  See the accompanying COPYING file for use and distribution legalese.

---------------------------------------------------------------------------------
Something went wrong with that request. Please try again.