Skip to content

debraj-manna/go-dogstatsd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Overview

Package dogstatsd provides a Go DogStatsD client. DogStatsD extends StatsD - adding tags and histograms. The documentation for DogStatsD is here: http://docs.datadoghq.com/guides/dogstatsd/

Get the code

$ go get github.com/ooyala/go-dogstatsd

Usage

// Create the client
c, err := dogstatsd.New("127.0.0.1:8125")
defer c.Close()
if err != nil {
  log.Fatal(err)
}
// Prefix every metric with the app name
c.Namespace = "flubber."
// Send the EC2 availability zone as a tag with every metric
c.Tags = append(c.Tags, "us-east-1a")
err = c.Gauge("request.duration", 1.2, nil, 1)

// Post info to datadog event stream
err = c.Info("cookie alert", "Cookies up for grabs in the kitchen!", nil)

Development

Run the tests with:

$ go test

Documentation

Please see: http://godoc.org/github.com/ooyala/go-dogstatsd

License

go-dogstatsd is released under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%