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], // ...
]
},
// ...
]
}
Created
July 29, 2011 03:51
-
-
Save paul/1113090 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment