Skip to content

cv-library/statsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

statsd

A StatsD client for Go.

Example

import (
    "github.com/cv-library/statsd"
)

func main() {
    statsd.Address = "localhost:8125"

    timer := statsd.Timer()

    // Do stuff

    timer.Send("metric.name", "metric.name2")

    // Or using a sampling rate
    timer.SendWithOptions(
        &statsd.Options{ Rate: 0.5 },
        "sampled.metric",
    )
}

License

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

About

A StatsD client for Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages