show and send total summary data to graphite for all data collected #693

This commit is contained in:
soulgalore 2015-07-15 07:57:43 -05:00
parent ce656f7a36
commit 9cd1ea2294
4 changed files with 4 additions and 1 deletions

View File

@ -295,7 +295,7 @@ GraphiteCollector.prototype._getDomainStats = function(domains, hostname) {
GraphiteCollector.prototype._getSummaryStats = function(aggregates, hostname, noOfPages) {
var statistics = '';
var self = this;
var values = ['min', 'p10', 'median', 'mean', 'p90', 'p99', 'max'];
var values = ['min', 'p10', 'median', 'mean', 'p90', 'p99', 'max', 'sum'];
aggregates.forEach(function(aggregate) {
values.forEach(function(value) {

View File

@ -202,6 +202,7 @@ module.exports = {
p80: stats.percentile(80).toFixed(decimals),
p90: stats.percentile(90).toFixed(decimals),
p99: stats.percentile(99).toFixed(decimals),
sum: stats.sum.toFixed(decimals),
median: stats.median().toFixed(decimals),
mean: stats.amean().toFixed(decimals)
};

View File

@ -21,6 +21,7 @@
<th>p90</th>
<th>p99</th>
<th>max</th>
<th>sum</th>
</tr>
</thead>
<tbody>

View File

@ -7,4 +7,5 @@
<td>{{getHumanReadable this stats.p90 true}}</td>
<td>{{getHumanReadable this stats.p99 true}}</td>
<td>{{getHumanReadable this stats.max true}}</td>
<td>{{getHumanReadable this stats.sum true}}</td>
</tr>