R Client library for StatsD. Contains a direct only, buffered version in todo
Only working on Linux and Mac for now, next step would be Windows support (feel free to create a PR!)
devtools::install_github("stumpyfr/rstatsd")
Increment
- Count occurrences per second/minute of a specific eventDecrement
- Count occurrences per second/minute of a specific eventCount
- Continously increasing value, e.g. read operations since bootTiming
- To track a duration eventGauge
Gauges are a constant data type. They are not subject to averaging, and they don’t change unless you change them. That is, once you set a gauge value, it will be a flat line on the graph until you change it again
to count each http 200 return code on post event, the last parameters allow you to set the sample rate
library("rstatsd")
client <- new(rstatsd::Statsd, "localhost", 8125, "myproject.")
client$count("http.post.200", 1, 1)