Categorygithub.com/zendesk/statsd-logger
module
0.4.0
Repository: https://github.com/zendesk/statsd-logger.git
Documentation: pkg.go.dev

# README

StatsD Logger for Go

Build Status GoDoc Go Report Card GitHub tag Docker Automated build

Simple logger for StatsD metrics, adapted from http://lee.hambley.name/2013/01/26/dirt-simple-statsd-server-for-local-development.html to make it easier to debug metrics in development. Beyond converting it from Ruby to Go, also add colour output and rendering of DogStatsd tags.

Usage

CLI

go get -u github.com/catkins/statsd-logger/cmd/statsd-logger
statsd-logger

# send it some metrics using a library or (low-tech) netcat
echo -n "my.awesome_counter:1|c#cool:tags,another_tag:with_value" | nc -u -w0 localhost 8125

Docker

statsd-logger can also log StatsD metrics being being sent to udp:8125 on running docker containers without modification.

# log metrics for container named "myapp"
docker run --rm -it --net="container:myapp" catkins/statsd-logger

Licence

The MIT License

Copyright 2017 Chris Atkins

# Packages

No description provided by the author
Package metrics provides a simple dummy StatsD logging server for local development Adapted from http://lee.hambley.name/2013/01/26/dirt-simple-statsd-server-for-local-development.html.
No description provided by the author