Datadog dogstatsd middleware plugin for Caddy.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Brett Langdon 56395a1fdd Add "datadog-go" from "https://github.com/datadog/datadog-go@master" 9 years ago
..
statsd Add "datadog-go" from "https://github.com/datadog/datadog-go@master" 9 years ago
.travis.yml Add "datadog-go" from "https://github.com/datadog/datadog-go@master" 9 years ago
LICENSE.txt Add "datadog-go" from "https://github.com/datadog/datadog-go@master" 9 years ago
README.md Add "datadog-go" from "https://github.com/datadog/datadog-go@master" 9 years ago

README.md

Overview

Packages in datadog-go provide Go clients for various APIs at DataDog.

Statsd

Godoc license

The statsd package provides a client for dogstatsd:

import "github.com/DataDog/datadog-go/statsd"

func main() {
    c, err := statsd.New("127.0.0.1:8125")
    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)
    // ...
}

License

All code distributed under the MIT License unless otherwise specified.