GitXplorerGitXplorer
m

statsd.cr

public
33 stars
12 forks
1 issues

Commits

List of commits on branch main.
Unverified
f0820fac6d1f8d45ab36361573ad23d740146c47

docs: update urls

mmiketheman committed 2 years ago
Unverified
d426d58aa8eeba95cca84bb7329fbf27672ea462

test: add suffix to UInt64

mmiketheman committed 2 years ago
Unverified
d480e76b7738f132245f5e74643f1887afd3cf67

dev: add gitpod configuration file

mmiketheman committed 2 years ago
Verified
6065b3635304d0e80ea05cb5030a576b0b55195b

tatsd.cr, v0.5.0

mmiketheman committed 3 years ago
Unverified
38a22a9924311aca200bf446f8ecab7d75db1888

Pass an IPAddress in the constructor of Client

ccarlhoerberg committed 3 years ago
Unverified
f3a461ef7b6281fc4a199150c6838b94adcddc00

Add distribution metric type for Datadog compatibility

mmjeffrey18 committed 3 years ago

README

The README file for this repository.

statsd.cr

A statsd client library for Crystal.

Crystal CI

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Test your changes with make spec
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request

Contributors

Inspired by syslog.cr and statsd.