8000 GitHub - pshima/go-statsd-client: statsd client for Go
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pshima/go-statsd-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-statsd-client

Build Status GoDoc

About

A StatsD client for Go.

Docs

Viewable online at godoc.org.

Example

import (
    "log"

    "github.com/cactus/go-statsd-client/statsd"
)

func main() {
    // first create a client
    client, err := statsd.NewClient("127.0.0.1:8125", "test-client")
    // handle any errors
    if err != nil {
        log.Fatal(err)
    }
    // make sure to clean up
    defer client.Close()

    // Send a stat
    client.Inc("stat1", 42, 1.0)
}

See docs for more info.

Contributors

See here.

Alternative Implementations

See the statsd wiki for some additional client implementations (scroll down to the Go section).

License

Released under the MIT license. See LICENSE.md file for details.

About

statsd client for Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%
0