{"repo":"vthiery/cpp-statsd-client","free":true,"listed":false,"github":"https://github.com/vthiery/cpp-statsd-client","clone":"git clone https://github.com/vthiery/cpp-statsd-client.git","description":"A header-only StatsD client implemented in C++","language":"CMake","stars":56,"topics":["statsd-client","header-only","metrics","cpp11"],"license":"MIT","category":"analytics","readme_excerpt":"C++ StatsD Client A header-only StatsD client implemented in C++. The client allows: - batching, - change of configuration at runtime, - user-defined frequency rate. Install and Test In order to install the header files and/or run the tests, simply use the Makefile and execute Usage Simple example A simple example of how to use the client: Client configuration The configuration of the client must be input when one instantiates it. Nevertheless, the API allows the configuration ot change afterwards. For example, one can do the following: Batching The client supports batching of the metrics. The batch size parameter is the number of bytes to allow in each batch (UDP datagram payload) to be sent to the statsd process. E.g. This number is not a hard limit. If appending the current stat to the current batch (separated by the '\\n' character) pushes the current batch over the batch size, that batch is enqueued (not sent) and a new batch is started. If batch size is 0, the default, then each stat is sent individually to the statsd process and no batches are enqueued. Sending interval As previously mentioned, if batching is disabled (by setting the batch size to 0) then every stat is sent immediately in a blocking fashion. If batching is enabled (ie non-zero) then you may also set the send interval. E.g. The send interval controls the time, in milliseconds, to wait before flushing/sending the queued stats batches to the statsd process. When the send interval is non-zero a background t","default_branch":null,"files":null,"tree":[],"storefront":"/r/vthiery","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vthiery/cpp-statsd-client/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}