Skip to content

ant0ine/go-json-rest-middleware-statsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Statsd Middleware for Go-Json-Rest

Currently not used in production, API subject to change

godoc license

This is a middleware for Go-Json-Rest. It uses g2s to send statistics about the current request/response to a statsd server. It depends on rest.TimerMiddleware and rest.RecorderMiddleware that should be in the wrapped middlewares.

The two metrics are in the form:

  • [<Prefix>.]response.status_code.<StatusCode>: Counter.
  • [<Prefix>.]response.elasped_time: Timer.

Copyright (c) 2015-2016 Antoine Imbert

MIT License

Analytics

About

Statsd Middleware for Go-Json-Rest

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages