mirror of https://github.com/status-im/consul.git
30 lines
636 B
Handlebars
30 lines
636 B
Handlebars
{{#unless @noMetricsReason}}
|
|
<DataSource
|
|
@src={{uri nspace dc 'metrics' @endpoint @service @protocol}}
|
|
@onchange={{action 'statsUpdate'}}
|
|
@onerror={{action (mut error) value="error"}}
|
|
/>
|
|
{{/unless}}
|
|
|
|
<div class="stats">
|
|
{{#if hasLoaded }}
|
|
{{#each stats as |stat|}}
|
|
<dl>
|
|
<dt>
|
|
{{stat.value}}
|
|
</dt>
|
|
<dd>
|
|
{{stat.label}}
|
|
</dd>
|
|
<Tooltip>{{{stat.desc}}}</Tooltip>
|
|
</dl>
|
|
{{else}}
|
|
<span>No Metrics Available</span>
|
|
{{/each}}
|
|
{{else}}
|
|
<TopologyMetrics::Status
|
|
@noMetricsReason={{@noMetricsReason}}
|
|
@error={{error}}
|
|
/>
|
|
{{/if}}
|
|
</div> |