Skip to content

Commit

Permalink
update graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Sep 2, 2014
1 parent 2c4c429 commit 869141d
Show file tree
Hide file tree
Showing 15 changed files with 2,242 additions and 6 deletions.
4 changes: 2 additions & 2 deletions 300_Aggregations/30_histogram.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ means `0-20,000`, the key `20000` means `20,000-40,000`, etc.
Graphically, you could represent the above data in a histogram like this:

[[barcharts-histo1]]
image::images/300_30_histo1.png["Histogram of top makes per price range"]
image::images/300_30_histo1.svg["Histogram of top makes per price range"]

Of course, you can build bar charts with any aggregation which emits categories
and statistics, not just the `histogram` bucket. Let's build a bar chart of
Expand Down Expand Up @@ -145,7 +145,7 @@ std_err = std_deviation / count
Which will allow us to build a chart like this:

[[barcharts-bar1]]
image::images/300_30_bar1.png["Barchart of average price per make, with error bars"]
image::images/300_30_bar1.svg["Barchart of average price per make, with error bars"]



4 changes: 2 additions & 2 deletions 300_Aggregations/35_date_histogram.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ you'll get a response that is easy to plug straight into your graphing libraries
and give you a graph like this:

[[date-histo-ts1]]
image::images/300_35_ts1.png["Line chart of cars sold per month"]
image::images/300_35_ts1.svg["Line chart of cars sold per month"]

=== Extended Example

Expand Down Expand Up @@ -270,4 +270,4 @@ We can take this response and put it into a graph, showing a line chart for
total sale price, and a bar chart for each individual make (per quarter):

[[date-histo-ts2]]
image::images/300_35_ts2.png["Line chart of cars sold per month"]
image::images/300_35_ts2.svg["Line chart of cars sold per month"]
4 changes: 2 additions & 2 deletions 300_Aggregations/65_percentiles.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ metric is easily skewed by just a single outlier.
This graph visualizes the problem. If you rely on simple metrics like mean or median, you might see a graph that looks like this:

[[percentile-mean-median]]
image::images/300_65_percentile1.png["Assessing website latency using mean/median"]
image::images/300_65_percentile1.svg["Assessing website latency using mean/median"]

Everything looks fine. There is a slight bump, but nothing to be concerned about.
But if we load up the 99th percentile (the value which accounts for the slowest 1%
of latencies), we see an entirely different story:

[[percentile-mean-median-percentile]]
image::images/300_65_percentile2.png["Assessing website latency using percentiles"]
image::images/300_65_percentile2.svg["Assessing website latency using percentiles"]

Woah! At 9:30 AM, the mean is only 75ms. As a system administrator, you wouldn't
look at this value twice. Everything normal! But the 99th percentile is telling
Expand Down
Binary file removed images/300_30_bar1.png
Binary file not shown.
344 changes: 344 additions & 0 deletions images/300_30_bar1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/300_30_histo1.png
Binary file not shown.
375 changes: 375 additions & 0 deletions images/300_30_histo1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/300_35_ts1.png
Binary file not shown.
269 changes: 269 additions & 0 deletions images/300_35_ts1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/300_35_ts2.png
Binary file not shown.
470 changes: 470 additions & 0 deletions images/300_35_ts2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/300_65_percentile1.png
Binary file not shown.
376 changes: 376 additions & 0 deletions images/300_65_percentile1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/300_65_percentile2.png
Binary file not shown.
402 changes: 402 additions & 0 deletions images/300_65_percentile2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 869141d

Please sign in to comment.