Skip to content

Instantly share code, notes, and snippets.

@jut-test
Forked from demmer/README.md
Last active August 29, 2015 14:09
Show Gist options
  • Save jut-test/3630b423f544999e6e82 to your computer and use it in GitHub Desktop.
Save jut-test/3630b423f544999e6e82 to your computer and use it in GitHub Desktop.

Live Data, Meet Historical

Jut lets you analyze live data, historical data or both. This showcase taps into response time data from our synthetic demo generator to combine the last two minutes of history with the live firehose.

Your Turn:

  • Change "service" to "host" on lines 7 and 8
  • Change the -from time to :5 minutes ago:
  • Change the batch interval to :5 seconds:
export sub demo_cdn(from) {
demo cdn -every :500 milliseconds: -period :500 milliseconds:
-nhosts 5 -dos 0.7 -dos_router markov
metrics "response_ms" -from from
}
import "data.juttle" as d;
d.demo_cdn -from :2 minutes ago: |
filter name = "response_ms" |
batch :1 second: |
reduce p90 = percentile(value, .9) by service |
@timechart -columns "p90" -by service -title "Response time (ms) by Service"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment