https://github.com/regadas/martini-xstatsd
Martini handler to get handler stats to statsd
https://github.com/regadas/martini-xstatsd
Last synced: about 1 year ago
JSON representation
Martini handler to get handler stats to statsd
- Host: GitHub
- URL: https://github.com/regadas/martini-xstatsd
- Owner: regadas
- Created: 2014-07-21T13:14:04.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-21T13:34:13.000Z (almost 12 years ago)
- Last Synced: 2025-01-29T08:24:10.041Z (over 1 year ago)
- Language: Go
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## go-xstatsd ##
```go
import(
"github.com/go-martini/martini"
"github.com/regadas/go-xstatsd"
sh "github.com/regadas/martini-xstatsd"
)
func main(){
m := martini.Classic()
stats := statsd.New("127.0.0.1:8125", "test.prefix")
m.Use(sh.HandlerMetrics(stats))
m.Run()
}
```