Last active
August 29, 2015 14:10
-
-
Save apurvadave/be0b84896e745bb6e40c to your computer and use it in GitHub Desktop.
Basic metric overview dashboard
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 | |
-title "Response Time 1 Hour @ 10 seconds by Service"; | |
demo_response_time -from :1 days ago:| // Read data from the last day continuing live | |
batch :1 hour:| // Group into 1 hour intervals | |
reduce p90 = percentile(value, .9) by service | // Calculate the p90 response time | |
@timechart -columns "p90" -by service // Plot the data on a chart | |
-title "Response Time 1 Day @ 1 Hour by Service"; | |
demo_response_time -from :30 days ago:| // Read data from the last month continuing live | |
batch :1 hour:| // Group into 1 hour intervals | |
reduce p90 = percentile(value, .9) by service | // Calculate the p90 response time | |
@timechart -columns "p90" -by service // Plot the data on a chart | |
-title "Response Time 1 Month @ 1 Hour by Service"; | |
demo_response_time -from :365 days ago:| // Read data from the last year continuing live | |
batch :1 day:| // Group into 1 day intervals | |
reduce p90 = percentile(value, .9) by service | // Calculate the p90 response time | |
@timechart -columns "p90" -by service // Plot the data on a chart | |
-title "Response Time 1 Year @ 1 Day by Service"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment