show and send total summary data to graphite for all data collected #693
This commit is contained in:
parent
ce656f7a36
commit
9cd1ea2294
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
<th>p90</th>
|
||||
<th>p99</th>
|
||||
<th>max</th>
|
||||
<th>sum</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue