This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder