Skip to content

Instantly share code, notes, and snippets.

View apurvadave's full-sized avatar

Apurva Dave apurvadave

View GitHub Profile
@apurvadave
apurvadave / main.juttle
Last active August 29, 2015 14:10
Basic metric overview dashboard
sub demo_response_time(from) {
demo cdn
-nhosts 5 -dos 0.7 -dos_router markov
metrics 'response_ms' -from from
} // Load the demo data configuration
demo_response_time -from :1 hour ago:| // Read data from the last hour continuing live
batch :10 second:| // Group into 10 second intervals
reduce p90 = percentile(value, .9) by service | // Calculate the p90 response time
@timechart -columns "p90" -by service // Plot the data on a chart