for="report"
class="cd-col-form-label">Report preview
<cd-helper i18n-html
- html="The actual telemetry data that will be submitted.">
+ html="The actual telemetry data that will be submitted."><em>Note: Please select 'Download' to
+ view the full report, including metrics from the perf channel.</em>
</cd-helper>
</label>
<div class="cd-col-form-input">
return JSON.stringify(report, this.replacer, 2);
}
+ private formatReport() {
+ let copy = {};
+ copy = JSON.parse(JSON.stringify(this.report));
+ const perf_keys = [
+ 'perf_counters',
+ 'stats_per_pool',
+ 'stats_per_pg',
+ 'io_rate',
+ 'osd_perf_histograms',
+ 'mempool',
+ 'heap_stats',
+ 'rocksdb_stats'
+ ];
+ for (let i = 0; i < perf_keys.length; i++) {
+ const key = perf_keys[i];
+ if (key in copy['report']) {
+ delete copy['report'][key];
+ }
+ }
+ return JSON.stringify(copy, null, 2);
+ }
+
private createPreviewForm() {
const controls = {
- report: JSON.stringify(this.report, this.replacer, 2),
+ report: this.formatReport(),
reportId: this.reportId,
licenseAgrmt: [this.licenseAgrmt, Validators.requiredTrue]
};