mirror of https://github.com/rancher/ui.git
Merge pull request #1875 from n313893254/work
Fix Cluster Logging UI issues
This commit is contained in:
commit
aced1d1cda
|
|
@ -28,6 +28,8 @@
|
||||||
<div class="col span-2">
|
<div class="col span-2">
|
||||||
<label class="acc-label">
|
<label class="acc-label">
|
||||||
<span class="pr-10"> {{radio-button selection=model._targetType value="normalEvent"}} {{t 'alertPage.newOrEdit.normal'}} </span>
|
<span class="pr-10"> {{radio-button selection=model._targetType value="normalEvent"}} {{t 'alertPage.newOrEdit.normal'}} </span>
|
||||||
|
</label>
|
||||||
|
<label class="acc-label">
|
||||||
{{radio-button selection=model._targetType value="warningEvent"}} {{t 'alertPage.newOrEdit.warning'}}
|
{{radio-button selection=model._targetType value="warningEvent"}} {{t 'alertPage.newOrEdit.warning'}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{alert-table alerts=model.alerts notifiers=model.notifiers}}
|
{{alert-table alerts=model.alerts notifiers=model.notifiers}}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@ import { get } from '@ember/object';
|
||||||
|
|
||||||
export default Component.extend(es, {
|
export default Component.extend(es, {
|
||||||
|
|
||||||
|
didInsertElement() {
|
||||||
|
this.$('#elasticsearch-endpoint').focus()
|
||||||
|
},
|
||||||
|
|
||||||
indexFormat: function() {
|
indexFormat: function() {
|
||||||
const ps = get(this, 'pageScope');
|
const ps = get(this, 'pageScope');
|
||||||
return ps === 'cluster' ? '${clusterName}-${dateFormat}' : '${clusterName}_${projectName}-${dateFormat}';
|
return ps === 'cluster' ? '${clusterName}-${dateFormat}' : '${clusterName}_${projectName}-${dateFormat}';
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
value=config.endpoint
|
value=config.endpoint
|
||||||
classNames="form-control"
|
classNames="form-control"
|
||||||
placeholder=(t 'loggingPage.endpointPlaceholder')
|
placeholder=(t 'loggingPage.endpointPlaceholder')
|
||||||
|
id="elasticsearch-endpoint"
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<p class="text-info text-small">{{t 'loggingPage.elasticsearch.endpointHelpText'}}</p>
|
<p class="text-info text-small">{{t 'loggingPage.elasticsearch.endpointHelpText'}}</p>
|
||||||
|
|
@ -71,4 +72,4 @@
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{logging/form-log-format logPreview=logPreview model=model}}
|
{{logging/form-log-format logPreview=logPreview model=model}}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,10 @@ export default Component.extend(es, {
|
||||||
set(this, 'limitsCpu', limitsCpu / 1000);
|
set(this, 'limitsCpu', limitsCpu / 1000);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
didInsertElement() {
|
||||||
|
this.$('#embedded-cpuRequests').focus()
|
||||||
|
},
|
||||||
|
|
||||||
requestsCpuChanged: function() {
|
requestsCpuChanged: function() {
|
||||||
const requestsCpu = get(this, 'requestsCpu');
|
const requestsCpu = get(this, 'requestsCpu');
|
||||||
set(this, 'config.requestsCpu', requestsCpu * 1000);
|
set(this, 'config.requestsCpu', requestsCpu * 1000);
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
value=requestsCpu
|
value=requestsCpu
|
||||||
className="form-control"
|
className="form-control"
|
||||||
placeholder=(t 'loggingPage.embedded.cpuRequests.placeholder')
|
placeholder=(t 'loggingPage.embedded.cpuRequests.placeholder')
|
||||||
|
id="embedded-cpuRequests"
|
||||||
}}
|
}}
|
||||||
<p class="text-small text-info">{{t 'loggingPage.embedded.cpuRequests.helpText'}}</p>
|
<p class="text-small text-info">{{t 'loggingPage.embedded.cpuRequests.helpText'}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -80,4 +81,4 @@
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{logging/form-log-format logPreview=logPreview model=model}}
|
{{logging/form-log-format logPreview=logPreview model=model}}
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,10 @@ export default Component.extend({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
didInsertElement() {
|
||||||
|
this.$('#kafka-endpoint').focus()
|
||||||
|
},
|
||||||
|
|
||||||
logPreview: function() {
|
logPreview: function() {
|
||||||
const str = get(this, 'fieldsStr');
|
const str = get(this, 'fieldsStr');
|
||||||
return `{
|
return `{
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
value=config.zookeeperEndpoint
|
value=config.zookeeperEndpoint
|
||||||
classNames="form-control"
|
classNames="form-control"
|
||||||
placeholder=(t 'loggingPage.endpointPlaceholder')
|
placeholder=(t 'loggingPage.endpointPlaceholder')
|
||||||
|
id="kafka-endpoint"
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<p class="text-info text-small mb-0">{{t 'loggingPage.kafka.zookeeperHelpText'}}</p>
|
<p class="text-info text-small mb-0">{{t 'loggingPage.kafka.zookeeperHelpText'}}</p>
|
||||||
|
|
@ -68,4 +69,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{logging/form-log-format logPreview=logPreview model=model}}
|
{{logging/form-log-format logPreview=logPreview model=model}}
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,10 @@ import { alias } from '@ember/object/computed'
|
||||||
export default Component.extend({
|
export default Component.extend({
|
||||||
config: alias('model.config'),
|
config: alias('model.config'),
|
||||||
|
|
||||||
|
didInsertElement() {
|
||||||
|
this.$('#splunk-endpoint').focus()
|
||||||
|
},
|
||||||
|
|
||||||
logPreview: function() {
|
logPreview: function() {
|
||||||
const fieldsStr = get(this, 'fieldsStr');
|
const fieldsStr = get(this, 'fieldsStr');
|
||||||
const template = `{
|
const template = `{
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
value=config.endpoint
|
value=config.endpoint
|
||||||
classNames="form-control"
|
classNames="form-control"
|
||||||
placeholder=(t 'loggingPage.endpointPlaceholder')
|
placeholder=(t 'loggingPage.endpointPlaceholder')
|
||||||
|
id="splunk-endpoint"
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -44,4 +45,4 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{logging/form-log-format logPreview=logPreview model=model}}
|
{{logging/form-log-format logPreview=logPreview model=model}}
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,10 @@ export default Component.extend({
|
||||||
this.set('severities', SEVERITIES);
|
this.set('severities', SEVERITIES);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
didInsertElement() {
|
||||||
|
this.$('#syslog-endpoint').focus()
|
||||||
|
},
|
||||||
|
|
||||||
logPreview: function() {
|
logPreview: function() {
|
||||||
const str = get(this, 'fieldsStr');
|
const str = get(this, 'fieldsStr');
|
||||||
const program = get(this, 'config.program') || '';
|
const program = get(this, 'config.program') || '';
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
value=config.endpoint
|
value=config.endpoint
|
||||||
classNames="form-control"
|
classNames="form-control"
|
||||||
placeholder=(t 'loggingPage.syslog.endpointPlaceholder')
|
placeholder=(t 'loggingPage.syslog.endpointPlaceholder')
|
||||||
|
id="syslog-endpoint"
|
||||||
}}
|
}}
|
||||||
<div class="input-group-btn bg-primary">
|
<div class="input-group-btn bg-primary">
|
||||||
<button
|
<button
|
||||||
|
|
@ -53,4 +54,4 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{logging/form-log-format logPreview=logPreview model=model}}
|
{{logging/form-log-format logPreview=logPreview model=model}}
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ loggingPage:
|
||||||
clusterHeader: Cluster Logging
|
clusterHeader: Cluster Logging
|
||||||
projectHeader: Project Logging
|
projectHeader: Project Logging
|
||||||
helpText:
|
helpText:
|
||||||
cluster: We will collect the standard output and standard error for each container, the log files which under path<code> /var/log/containers/ </code>on each host. The log will be shipped to the target you choose below.
|
cluster: We will collect the standard output and standard error for each container, the log files which under path <code >/var/log/containers/</code> on each host. The log will be shipped to the target you choose below.
|
||||||
clusterTarget: The cluster logging target is <code class="text-capitalize">{clusterTargetType}</code>. If project logging is enabled, logs will be shipped to both cluster target and project logging target.
|
clusterTarget: The cluster logging target is <code class="text-capitalize">{clusterTargetType}</code>. If project logging is enabled, logs will be shipped to both cluster target and project logging target.
|
||||||
noClusterTarget: Logging is disabled at current cluster.
|
noClusterTarget: Logging is disabled at current cluster.
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue