2020-10-09 20:31:15 +00:00
|
|
|
{{#each @items as |item|}}
|
2020-10-09 20:57:08 +00:00
|
|
|
<a class="card"
|
|
|
|
href={{href-to "dc.services.show.index" item.Name}}
|
2020-10-09 20:31:15 +00:00
|
|
|
data-permission={{service/intention-permissions item}}
|
|
|
|
id="{{item.Namespace}}{{item.Name}}"
|
|
|
|
>
|
|
|
|
<p>
|
|
|
|
{{item.Name}}
|
|
|
|
</p>
|
|
|
|
<div class="details">
|
|
|
|
{{#if (and (and nspace (env 'CONSUL_NSPACES_ENABLED')) @type)}}
|
|
|
|
<dl class="nspace">
|
|
|
|
<dt>
|
|
|
|
<Tooltip>
|
|
|
|
Namespace
|
|
|
|
</Tooltip>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
{{item.Namespace}}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
|
|
|
{{#if (eq item.Datacenter @dc)}}
|
|
|
|
{{#let (service/health-percentage item) as |percentage|}}
|
|
|
|
{{#if (not-eq percentage.passing 0)}}
|
|
|
|
<span class="passing">{{percentage.passing}}%</span>
|
|
|
|
{{/if}}
|
|
|
|
{{#if (not-eq percentage.warning 0)}}
|
|
|
|
<span class="warning">{{percentage.warning}}%</span>
|
|
|
|
{{/if}}
|
|
|
|
{{#if (not-eq percentage.critical 0)}}
|
|
|
|
<span class="critical">{{percentage.critical}}%</span>
|
|
|
|
{{/if}}
|
|
|
|
{{/let}}
|
|
|
|
{{else}}
|
|
|
|
<dl class="health">
|
|
|
|
<dt>
|
|
|
|
<Tooltip>
|
|
|
|
We are unable to determine the health status of services in remote datacenters.
|
|
|
|
</Tooltip>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
Health
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{#if @hasMetricsProvider }}
|
|
|
|
{{#if (eq @type 'upstream')}}
|
2020-10-26 19:48:23 +00:00
|
|
|
<TopologyMetrics::Stats
|
|
|
|
@endpoint='upstream-summary-for-service'
|
|
|
|
@service={{@service}}
|
|
|
|
@item={{item.Name}}
|
|
|
|
@noMetricsReason={{@noMetricsReason}}
|
|
|
|
/>
|
2020-10-09 20:31:15 +00:00
|
|
|
{{else}}
|
2020-10-26 19:48:23 +00:00
|
|
|
<TopologyMetrics::Stats
|
|
|
|
@endpoint='downstream-summary-for-service'
|
|
|
|
@service={{@service}}
|
|
|
|
@item={{item.Name}}
|
|
|
|
@noMetricsReason={{@noMetricsReason}}
|
|
|
|
/>
|
2020-10-09 20:31:15 +00:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2020-10-09 20:57:08 +00:00
|
|
|
</a>
|
2020-10-09 20:31:15 +00:00
|
|
|
{{/each}}
|