mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 00:45:26 +00:00
fix config
This commit is contained in:
parent
59b4c2ad29
commit
15615a74cf
@ -120,7 +120,6 @@ const endpoints = ref<Endpoint[]>([]);
|
|||||||
const pageSize = 5;
|
const pageSize = 5;
|
||||||
const total = 10;
|
const total = 10;
|
||||||
const searchText = ref<string>("");
|
const searchText = ref<string>("");
|
||||||
const metricConfig = ref<MetricConfigOpt[]>(props.config.metricConfig || []);
|
|
||||||
|
|
||||||
queryEndpoints(total);
|
queryEndpoints(total);
|
||||||
|
|
||||||
@ -157,9 +156,10 @@ async function queryEndpointMetrics(currentPods: Endpoint[]) {
|
|||||||
ElMessage.error(json.errors);
|
ElMessage.error(json.errors);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const metricConfig = props.config.metricConfig || [];
|
||||||
endpoints.value = usePodsSource(currentPods, json, {
|
endpoints.value = usePodsSource(currentPods, json, {
|
||||||
...props.config,
|
...props.config,
|
||||||
metricConfig: metricConfig.value,
|
metricConfig: metricConfig,
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,6 @@ const instances = ref<Instance[]>([]); // current instances
|
|||||||
const searchInstances = ref<Instance[]>([]); // all instances
|
const searchInstances = ref<Instance[]>([]); // all instances
|
||||||
const pageSize = 5;
|
const pageSize = 5;
|
||||||
const searchText = ref<string>("");
|
const searchText = ref<string>("");
|
||||||
const metricConfig = ref<MetricConfigOpt[]>(props.config.metricConfig || []);
|
|
||||||
|
|
||||||
queryInstance();
|
queryInstance();
|
||||||
async function queryInstance() {
|
async function queryInstance() {
|
||||||
@ -182,9 +181,10 @@ async function queryInstanceMetrics(currentInstances: Instance[]) {
|
|||||||
ElMessage.error(json.errors);
|
ElMessage.error(json.errors);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const metricConfig = props.config.metricConfig || [];
|
||||||
instances.value = usePodsSource(currentInstances, json, {
|
instances.value = usePodsSource(currentInstances, json, {
|
||||||
...props.config,
|
...props.config,
|
||||||
metricConfig: metricConfig.value,
|
metricConfig,
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -133,7 +133,6 @@ const services = ref<Service[]>([]);
|
|||||||
const searchText = ref<string>("");
|
const searchText = ref<string>("");
|
||||||
const groups = ref<any>({});
|
const groups = ref<any>({});
|
||||||
const sortServices = ref<(Service & { merge: boolean })[]>([]);
|
const sortServices = ref<(Service & { merge: boolean })[]>([]);
|
||||||
const metricConfig = ref<MetricConfigOpt[]>(props.config.metricConfig || []);
|
|
||||||
|
|
||||||
queryServices();
|
queryServices();
|
||||||
|
|
||||||
@ -216,9 +215,10 @@ async function queryServiceMetrics(currentServices: Service[]) {
|
|||||||
ElMessage.error(json.errors);
|
ElMessage.error(json.errors);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const metricConfig = props.config.metricConfig || [];
|
||||||
services.value = usePodsSource(currentServices, json, {
|
services.value = usePodsSource(currentServices, json, {
|
||||||
...props.config,
|
...props.config,
|
||||||
metricConfig: metricConfig.value || [],
|
metricConfig: metricConfig || [],
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user