2020-05-07 13:57:15 +00:00
|
|
|
<div class="tab-section">
|
|
|
|
<div role="tabpanel">
|
|
|
|
{{#if (gt proxy.Proxy.Upstreams.length 0)}}
|
|
|
|
<section class="proxy-upstreams">
|
2020-06-03 17:46:20 +00:00
|
|
|
<h3> Upstreams</h3>
|
2020-05-07 13:57:15 +00:00
|
|
|
<ul data-test-proxy-upstreams>
|
|
|
|
{{#let proxy.Datacenter as |proxyDatacenter|}}
|
|
|
|
{{#each proxy.Proxy.Upstreams as |item|}}
|
|
|
|
<li>
|
|
|
|
<p data-test-destination-name>
|
|
|
|
{{item.DestinationName}}
|
|
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
{{#if (env 'CONSUL_NSPACES_ENABLED')}}
|
|
|
|
{{#if (not-eq item.DestinationType 'prepared_query')}}
|
|
|
|
<li class="nspace">
|
2020-06-12 13:35:52 +00:00
|
|
|
<span>
|
|
|
|
<Tooltip>
|
|
|
|
Namespace
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
{{or item.DestinationNamespace 'default'}}
|
|
|
|
</span>
|
2020-05-07 13:57:15 +00:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
{{#if (and (not-eq item.Datacenter proxyDatacenter) (not-eq item.Datacenter ""))}}
|
|
|
|
<li class="datacenter">
|
2020-06-12 13:35:52 +00:00
|
|
|
<span>
|
|
|
|
<Tooltip>
|
|
|
|
Datacenter
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
{{item.Datacenter}}
|
|
|
|
</span>
|
2020-05-07 13:57:15 +00:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{#if (gt item.LocalBindPort 0)}}
|
|
|
|
{{#let (concat (or item.LocalBindAddress '127.0.0.1') ':' item.LocalBindPort) as |combinedAddress| }}
|
|
|
|
<li class="port">
|
2020-06-12 13:35:52 +00:00
|
|
|
<span>
|
|
|
|
<Tooltip>
|
|
|
|
Address
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
<span>{{combinedAddress}}</span>
|
|
|
|
<CopyButton
|
|
|
|
@value={{combinedAddress}}
|
|
|
|
@name="Address"
|
|
|
|
/>
|
|
|
|
</span>
|
2020-05-07 13:57:15 +00:00
|
|
|
</li>
|
|
|
|
{{/let}}
|
|
|
|
{{/if}}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
{{/let}}
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
2020-05-19 16:18:04 +00:00
|
|
|
{{#if (gt proxy.Proxy.Expose.Paths.length 0)}}
|
2020-05-07 13:57:15 +00:00
|
|
|
<section class="proxy-exposed-paths">
|
|
|
|
<h3>Exposed paths</h3>
|
|
|
|
<p>
|
|
|
|
The following list shows individual HTTP paths exposed through Envoy for external services like Prometheus. Read more about this in our documentation.
|
|
|
|
</p>
|
2020-05-19 16:18:04 +00:00
|
|
|
<ul data-test-proxy-exposed-paths>
|
|
|
|
{{#each proxy.Proxy.Expose.Paths as |path|}}
|
|
|
|
<li>
|
|
|
|
{{#let (concat item.Address ':' path.Path) as |combinedAddress| }}
|
|
|
|
<p class="combined-address">
|
|
|
|
<span>
|
|
|
|
{{combinedAddress}}
|
|
|
|
</span>
|
|
|
|
<CopyButton
|
|
|
|
@value={{combinedAddress}}
|
|
|
|
@name="Address"
|
|
|
|
/>
|
|
|
|
</p>
|
|
|
|
{{/let}}
|
|
|
|
<ul>
|
|
|
|
{{#if path.Protocol}}
|
|
|
|
<li class="protocol">
|
2020-06-12 13:35:52 +00:00
|
|
|
<span>
|
|
|
|
<Tooltip>
|
|
|
|
Protocol
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
{{path.Protocol}}
|
|
|
|
</span>
|
2020-05-19 16:18:04 +00:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{#if path.ListenerPort}}
|
|
|
|
<li class="port">
|
2020-06-12 13:35:52 +00:00
|
|
|
<span>
|
|
|
|
<Tooltip>
|
|
|
|
Port
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
listening on :{{path.ListenerPort}}
|
|
|
|
</span>
|
2020-05-19 16:18:04 +00:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{#if path.LocalPathPort}}
|
|
|
|
<li class="port">
|
2020-06-12 13:35:52 +00:00
|
|
|
<span>
|
|
|
|
<Tooltip>
|
|
|
|
Port
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
local port :{{path.LocalPathPort}}
|
|
|
|
</span>
|
2020-05-19 16:18:04 +00:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{#if path.Path}}
|
|
|
|
<li class="path">
|
2020-06-12 13:35:52 +00:00
|
|
|
<span>
|
|
|
|
<Tooltip>
|
|
|
|
Path
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
{{path.Path}}
|
|
|
|
</span>
|
2020-05-19 16:18:04 +00:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2020-05-07 13:57:15 +00:00
|
|
|
</section>
|
|
|
|
{{/if}}
|
2020-06-10 16:40:22 +00:00
|
|
|
{{#if (or (gt proxy.ServiceChecks.length 0) (gt proxy.NodeChecks.length 0))}}
|
|
|
|
<section>
|
|
|
|
<h3>Proxy health</h3>
|
|
|
|
<HealthcheckList data-test-proxy-checks @items={{append proxy.ServiceChecks proxy.NodeChecks}} />
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
2020-05-07 13:57:15 +00:00
|
|
|
</div>
|
2020-05-19 16:18:04 +00:00
|
|
|
</div>
|