Skip to content

Instantly share code, notes, and snippets.

@kastner
Created October 7, 2010 01:04
Show Gist options
  • Select an option

  • Save kastner/614381 to your computer and use it in GitHub Desktop.

Select an option

Save kastner/614381 to your computer and use it in GitHub Desktop.
kastner:rrdtool-1.4.4/ (master✗) $ ./src/rrdtool json --step 10 --start 1286401820 --end 1286402120 DEF:bob=bob.rrd:bob:AVERAGE CDEF:realbob=bob,1000,\* XPORT:bob:"bobs" XPORT:realbob:"Real bobs"
[
{
"bobs": {
"start": 1286401830,
"step": 10,
"end": 1286402130,
"data_points": [
null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 278.14286, 209.50000, null, 102.50000, 8.40000, null, null, null, null, null
]
}
},
{
"Real bobs": {
"start": 1286401830,
"step": 10,
"end": 1286402130,
"data_points": [
null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 278142.85714, 209500.00000, null, 102500.00000, 8400.00000, null, null, null, null, null
]
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment