datadog-go

module
v0.0.0-...-d64c8aa Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT

README

Build Status

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, "region:us-east-1a")
    err = c.Gauge("request.duration", 1.2, nil, 1)
    // ...
}

License

All code distributed under the MIT License unless otherwise specified.

Directories

Path Synopsis
Package statsd provides a Go dogstatsd client.
Package statsd provides a Go dogstatsd client.

Jump to

Keyboard shortcuts

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