Skip to content

Instantly share code, notes, and snippets.

@apurvadave
Last active August 29, 2015 14:27
Show Gist options
  • Save apurvadave/54a6bd454b3a33bace94 to your computer and use it in GitHub Desktop.
Save apurvadave/54a6bd454b3a33bace94 to your computer and use it in GitHub Desktop.
Timechart for scatter comparison
(read -demo 'srch_cluster' -from :2 minutes ago: -max_samples '2000' name = 'response_ms';
read -demo 'srch_cluster' -from :2 minutes ago: -max_samples '2000' name='requests')
| reduce -every :2s: avg(value) by name
| @timechart
-keyField 'name' -display.duration :2m: -display.dataDensity 10
-title "Timechart Example"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment