8000 GitHub - brightcove-archive/ooyala_go-dogstatsd
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

brightcove-archive/ooyala_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

Contributors 4

  •  
  •  
  •  
  •  

Languages

0