{{#if (gt @topology.Downstreams.length 0)}}

{{@dc}}

Only showing downstreams within the current datacenter for {{@service.Service.Service}}.
{{#each @topology.Downstreams as |item|}} {{#if (and @hasMetricsProvider (not-eq @service.Service.Kind 'ingress-gateway'))}} {{/if}} {{/each}}
{{/if}}
{{@service.Service.Service}}
{{#if @hasMetricsProvider }} {{#if (not-eq @service.Service.Kind 'ingress-gateway')}} {{/if}} {{/if}}
{{#if (gt @topology.Upstreams.length 0)}}
{{#each-in (group-by "Datacenter" @topology.Upstreams) as |dc upstreams|}}

{{dc}}

{{#each upstreams as |item|}} {{#if (and @hasMetricsProvider (not-eq @service.Service.Kind 'ingress-gateway'))}} {{/if}} {{/each}}
{{/each-in}}
{{/if}}