|
|
@ -14,10 +14,11 @@ export default class TopologyMetricsStats extends Component {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// For up/downstreams we need to pull out the stats for the service we
|
|
|
|
// For up/downstreams we need to pull out the stats for the service we
|
|
|
|
// represent.
|
|
|
|
// represent.
|
|
|
|
if ((this.args.nspace || '').length === 0) {
|
|
|
|
let nspace = this.args.nspace || '';
|
|
|
|
this.args.nspace = 'default';
|
|
|
|
if (nspace.length === 0) {
|
|
|
|
|
|
|
|
nspace = 'default';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let entity = `${this.args.item}.${this.args.nspace}.${this.args.dc}`;
|
|
|
|
let entity = `${this.args.item}.${nspace}.${this.args.dc}`;
|
|
|
|
this.stats = event.data.stats[entity];
|
|
|
|
this.stats = event.data.stats[entity];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Limit to 4 metrics for now.
|
|
|
|
// Limit to 4 metrics for now.
|
|
|
|