diff --git a/ui/packages/consul-ui/app/components/topology-metrics/index.js b/ui/packages/consul-ui/app/components/topology-metrics/index.js index af0bdc97c6..e1ae71b621 100644 --- a/ui/packages/consul-ui/app/components/topology-metrics/index.js +++ b/ui/packages/consul-ui/app/components/topology-metrics/index.js @@ -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'; } }