Skip to content

Instantly share code, notes, and snippets.

@paul
Created July 29, 2011 03:51
Show Gist options
  • Save paul/1113090 to your computer and use it in GitHub Desktop.
Save paul/1113090 to your computer and use it in GitHub Desktop.
GET /metrics?hostname=example.com&any_part[]=cpu&any_part[]=load
{
  latest_datapoints_href: "http://tychoapp.com/metrics/datapoints/latest?hostname=example.com&any_part[]=cpu&any_part[]=load",
  datapoints_for_interval_href: "http://tychoapp.com/metrics/datapoints?hostname=example.com&any_part[]=cpu&any_part[]=load",
  items: [
    {
      href: "http://tychoapp.com/metrics/example.com/cpu/0/idle",
      name: "example.com/cpu/0/idle"
    },
    {
      href: "http://tychoapp.com/metrics/example.com/load/shortterm",
      name: "example.com/load/shortterm"
    }
  ]
}

GET /metrics/datapoints?hostname=example.com&any_part[]=cpu&any_part[]=load&start_time=x&end_time=y
{
  items: [
    {
      metric_href: "http://tychoapp.com/metrics/example.com/cpu/0/idle",
      values: [
        [1234567890, 95.6], // ...
      ]
    },
    // ...
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment