Skip to content

Instantly share code, notes, and snippets.

@gorsuch
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gorsuch/b5282da06477eda7a13f to your computer and use it in GitHub Desktop.
Save gorsuch/b5282da06477eda7a13f to your computer and use it in GitHub Desktop.
canary output formats

This document explores possible output formats for the canaryio/canary tool.

First, naked:

$ canary -u http://www.canary.io
canary 2.0.0 http://www.canary.io sites.canary dev 1413338267 0 200 0.685774 0.455677 0.498353 0.622554 23.235.40.133

Next, logfmt:

$ canary -u http://www.canary.io -o logfmt
app=canary v=2.0.0 url=http://www.canary.io name=sites.canary source=dev t=1413338267 curl_status=0 http_status=200 total_time=0.685774 namelookup_time=0.455677 connect_time=0.498353 starttransfer_time=0.622554 ip=23.235.40.133

json:

$ canary -u http://www.canary.io -o json
{...}

l2met:

$ canary -u http://www.canary.io -o l2met
...

statsd:

$ canary -u http://www.canary.io -o statsd | nc -uw0 statsd.mydomain.com 8125
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment