ui: make metrics work again (#9072)

Fixes regression from #9040
pull/9078/head
R.B. Boyer 2020-10-30 10:21:57 -05:00 committed by GitHub
parent fa4b0854fb
commit cf2cfbaf2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ export default class TopologyMetrics extends Component {
// TODO we can make the configurable even before we have a full solution for
// multi-DC forwarding for Prometheus so providers that are global for all
// DCs like an external managed APM can still load in all DCs.
if (this.env.var('CONSUL_DATACENTER_LOCAL') != this.args.dc) {
if (this.env.var('CONSUL_DATACENTER_LOCAL') != this.args.topology.get('Datacenter')) {
this.noMetricsReason = 'Unable to fetch metrics for a remote datacenter';
}
}