Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minaguib/libstatsdc
A C client library for the etsy/statsd/statsite telemetry daemon
https://github.com/minaguib/libstatsdc
Last synced: 16 days ago
JSON representation
A C client library for the etsy/statsd/statsite telemetry daemon
- Host: GitHub
- URL: https://github.com/minaguib/libstatsdc
- Owner: minaguib
- License: other
- Created: 2011-04-23T20:10:16.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2022-09-29T07:08:32.000Z (about 2 years ago)
- Last Synced: 2024-07-31T22:56:52.317Z (3 months ago)
- Language: C
- Homepage:
- Size: 20.5 KB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
- License: COPYING
- Authors: AUTHORS
Awesome Lists containing this project
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_reconnectIf 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 proxies2. 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.
---------------------------------------------------------------------------------