mirror of https://github.com/hashicorp/consul
parent
fa4b0854fb
commit
cf2cfbaf2e
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue