NEZ-1047 feat: endpoint metrics 增加 https 选项
This commit is contained in:
@@ -1415,6 +1415,7 @@ const cn = {
|
|||||||
scrape_interval_placeholder: '默认全局时间间隔',
|
scrape_interval_placeholder: '默认全局时间间隔',
|
||||||
scrape_timeout: '超时时间',
|
scrape_timeout: '超时时间',
|
||||||
scrape_timeout_placeholder: '默认全局超时时间',
|
scrape_timeout_placeholder: '默认全局超时时间',
|
||||||
|
protocol: '协议',
|
||||||
type: '类型',
|
type: '类型',
|
||||||
bearer_token: 'bearer token',
|
bearer_token: 'bearer token',
|
||||||
username: '用户名',
|
username: '用户名',
|
||||||
|
|||||||
@@ -1419,6 +1419,7 @@ const en = {
|
|||||||
scrape_interval_placeholder: 'default global scrape interval',
|
scrape_interval_placeholder: 'default global scrape interval',
|
||||||
scrape_timeout: 'Scrape timeout',
|
scrape_timeout: 'Scrape timeout',
|
||||||
scrape_timeout_placeholder: 'default global scrape timeout',
|
scrape_timeout_placeholder: 'default global scrape timeout',
|
||||||
|
protocol: 'Protocol',
|
||||||
type: 'Type',
|
type: 'Type',
|
||||||
bearer_token: 'bearer token',
|
bearer_token: 'bearer token',
|
||||||
username: 'Username',
|
username: 'Username',
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--path-->
|
<!--path-->
|
||||||
<el-form-item :label='$t("project.endpoint.path")' class="half-form-item" prop="configs.metrics_path">
|
<el-form-item :label='$t("project.endpoint.path")' class="half-form-item" prop="configs.metrics_path">
|
||||||
<el-input id="module-box-input-path" v-model="editEndpoint.configs[0].config.metrics_path" placeholder="" size="small" :disabled="editEndpoint.configs[0].config.protocol != 'http'"></el-input>
|
<el-input id="module-box-input-path" v-model="editEndpoint.configs[0].config.metrics_path" placeholder="" size="small" :disabled="editEndpoint.configs[0].config.protocol != 'http' && editEndpoint.configs[0].config.protocol != 'https'"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--port-->
|
<!--port-->
|
||||||
<el-form-item :label='$t("project.endpoint.port")' class="half-form-item" prop="configs.0.config.port" :rules="[
|
<el-form-item :label='$t("project.endpoint.port")' class="half-form-item" prop="configs.0.config.port" :rules="[
|
||||||
@@ -685,6 +685,10 @@ export default {
|
|||||||
{
|
{
|
||||||
value: 'snmp',
|
value: 'snmp',
|
||||||
name: 'SNMP'
|
name: 'SNMP'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'https',
|
||||||
|
name: 'HTTPS'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
logsBasicList: [
|
logsBasicList: [
|
||||||
@@ -912,7 +916,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.editEndpoint.type = type
|
this.editEndpoint.type = type
|
||||||
if (type == 'http') {
|
if (type == 'http' || type == 'https') {
|
||||||
this.editEndpoint.port = 9100
|
this.editEndpoint.port = 9100
|
||||||
} else {
|
} else {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user