statsd-server

command module
v0.0.0-...-43963b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 5 Imported by: 0

README

STATSD MUX

Statsd is yet another statsd server implementation using Golang. This project is as POC that we can create our own statsd server and modify the logic based on our needs.

How to run

Run statsd server
$ go mod download
$ go run main.go

It will run the UDP statsd server on port 8125 by default.

Try to push the metrics using nc command:

echo 'gorets:1|c\nglork:320|ms\ngaugor:333|g\nuniques:765|s' | nc -w 1 -u localhost 8125

Pure statsd implementation supports multi-line.

Run testing

To test with more data use testing directory by run:

$ cd testing
$ go mod download
$ go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
internal
pkg
testing module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL