Skip to content
master
Go to file
Code
This branch is 5 commits ahead, 2 commits behind markchadwick:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

Go Datadog

Simple Go interface to the Datadog API.

Metrics

The client can report metrics from go-metrics. Using either its DefaultRegistry, or a custom one, metrics can be periodically sent with code along the lines of the following:

import(
  "github.com/vistarmedia/datadog"
  "os"
  "time"
)

host _ := os.Hostname()
dog := datadog.New(host, "dog-api-key")
go dog.DefaultReporter().Start(60 * time.Second)

And to use a custom registry, it would simply read:

host _ := os.Hostname()
dog := datadog.New(host, "dog-api-key")
reporter := getMyCustomRegistry()
go dog.Reporter(registry).Start(60 * time.Second)

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.