https://github.com/drish/dogstatsd-local
Simple Ruby UDP service that prints to stdout DogStatsD messages in a JSON prettified format
https://github.com/drish/dogstatsd-local
datadog statsd
Last synced: about 1 year ago
JSON representation
Simple Ruby UDP service that prints to stdout DogStatsD messages in a JSON prettified format
- Host: GitHub
- URL: https://github.com/drish/dogstatsd-local
- Owner: drish
- License: mit
- Created: 2019-09-18T01:36:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-24T18:10:11.000Z (almost 7 years ago)
- Last Synced: 2025-03-05T11:50:28.262Z (over 1 year ago)
- Topics: datadog, statsd
- Language: Ruby
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.com/drish/dogstatsd-local)
### dogstatsd-local
A simple Ruby UDP service that prints back to STDOUT DogStatsD messages in a JSON prettified format
#### Setup
docker-compose
```yml
version: '3.4'
services:
dogstatsd-local:
image: drish/dogstatsd-local
ports:
- 8125:8125/udp
```
straight docker
```text
~/drish/ » docker run -p 8125:8125 drish/dogstatsd-local
INFO -- : initialized dogstatsd-local 0.0.0.0:8125
INFO -- : waiting for statsd datagrams..
```
Use your statsd client normally
```ruby
require 'datadog/statsd'
statsd = Datadog::Statsd.new('dogstatsd-local', 8125)
statsd.increment('page.views')
```
```sh
[2019-09-18T18:44:38.221440 #1] INFO -- : {"path":"page.views","namespace":"page","name":"views","value":1}
```
#### TODO
- [ ] Events