Skip to content

Instantly share code, notes, and snippets.

@apurvadave
Last active August 29, 2015 14:22
Show Gist options
  • Save apurvadave/9ab6f9edbc7d86d73735 to your computer and use it in GitHub Desktop.
Save apurvadave/9ab6f9edbc7d86d73735 to your computer and use it in GitHub Desktop.
Simple example using demo data to show off the Jut pan and zoom feature

This is a quick example to show off interactive zooming and panning on timecharts. Notice the grey 'context bar' beneath the timechart. Click and drag in that area to zoom in on a chart.

read -demo 'srch_cluster' -from :2 days ago: -to :now: name = 'response_ms' // Get data from 2 days ago till now
| reduce -every :10 seconds: p90 = percentile('value', .9) by host // Calculate p90 response time
| @timechart -title 'Response time (ms) by Service'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment