Skip to content

Commit

Permalink
Add 50th percentile (median) to reported statistics.
Browse files Browse the repository at this point in the history
Medians are fun.
  • Loading branch information
stevendanna committed Nov 25, 2013
1 parent 2ace4ad commit 78b9cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/estatsd_server.erl
Expand Up @@ -201,7 +201,7 @@ reported_metrics(Stats) ->
%% https://github.com/boundary/bear/blob/master/src/bear.erl
%%
%% Currently, this is 50, 75, 90, 95, 99, and 999
PercentilesToReport = [90, 95, 99],
PercentilesToReport = [50, 90, 95, 99],

%% Extract all the percentiles, creating appropriate metric names.
%% 90th percentile label => "upper_90", 95th percentile =>
Expand Down

1 comment on commit 78b9cae

@christophermaier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this is the same as the median, the label of the statistic generated will be "upper_50" instead of "median", which will affect any graphs we make with this data.

Please sign in to comment.