statsd
statsd.cr
A statsd client library for Crystal.
Installation
Add this to your application's shard.yml
:
dependencies:
statsd:
github: miketheman/statsd.cr
Usage
require "statsd"
statsd = Statsd::Client.new
statsd.increment "myapp.login_page", 1
# Datadog-compliant statsd tags:
statsd.increment "page.views", tags: ["page:login", "app:myapp"]
See examples/test.cr
for more.
Contributing
- Fork it ( https://github.com/[your-github-name]/statsd/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Test your changes with
make spec
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
Inspired by syslog.cr and statsd.
- @miketheman Mike Fiedler - creator, maintainer