Skip to content

Instantly share code, notes, and snippets.

@alandotcom
Created June 26, 2013 00:43
Show Gist options
  • Select an option

  • Save alandotcom/5863800 to your computer and use it in GitHub Desktop.

Select an option

Save alandotcom/5863800 to your computer and use it in GitHub Desktop.
Example of some new middleware for gathering metrics for Ruby web apps running on Unicorn
{
"responses.2xx": {
"type": "counter",
"value": 1
},
"responses.3xx": {
"type": "counter",
"value": 19
},
"responses.4xx": {
"type": "counter",
"value": 0
},
"responses.5xx": {
"type": "counter",
"value": 0
},
"requests.GET": {
"type": "counter",
"value": 20
},
"requests.POST": {
"type": "counter",
"value": 0
},
"requests.DELETE": {
"type": "counter",
"value": 0
},
"requests.HEAD": {
"type": "counter",
"value": 0
},
"requests.PUT": {
"type": "counter",
"value": 0
},
"raindrops.calling": {
"type": "gauge",
"value": 0
},
"raindrops.writing": {
"type": "gauge",
"value": 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment