diff --git a/src/graphql/fragments/ebpf.ts b/src/graphql/fragments/ebpf.ts index 252214b0..7f635650 100644 --- a/src/graphql/fragments/ebpf.ts +++ b/src/graphql/fragments/ebpf.ts @@ -43,11 +43,27 @@ export const queryEBPFTasks = { serviceInstanceId serviceInstanceName processLabels + processName + processId taskStartTime triggerType fixedTriggerDuration targetType createTime + continuousProfilingCauses { + type + singleValue { + threshold + current + } + uri { + uriRegex + uriPath + threshold + current + } + message + } }`, }; export const queryEBPFSchedules = { diff --git a/src/store/modules/continous-profiling.ts b/src/store/modules/continous-profiling.ts index 19f74f37..2c6bc58a 100644 --- a/src/store/modules/continous-profiling.ts +++ b/src/store/modules/continous-profiling.ts @@ -121,7 +121,7 @@ export const continousProfilingStore = defineStore({ id: index, }; }); - this.setSelectedStrategy(list[0] || {}); + this.setSelectedStrategy(this.strategyList[0]); if (!this.selectedStrategy.type) { return res.data; } diff --git a/src/store/modules/task-timeline.ts b/src/store/modules/task-timeline.ts index 14272164..25a411a7 100644 --- a/src/store/modules/task-timeline.ts +++ b/src/store/modules/task-timeline.ts @@ -64,7 +64,10 @@ export const taskTimelineStore = defineStore({ if (res.data.errors) { return res.data; } - this.taskList = res.data.data.queryEBPFTasks || []; + const selectorStore = useSelectorStore(); + this.taskList = (res.data.data.queryEBPFTasks || []).filter( + (d: EBPFTaskList) => selectorStore.currentProcess && d.processId === selectorStore.currentProcess.id, + ); // this.selectedTask = this.taskList[0] || {}; // await this.getGraphData(); return res.data; diff --git a/src/views/dashboard/related/continuous-profiling/components/Policy.vue b/src/views/dashboard/related/continuous-profiling/components/Policy.vue index 8e315dbe..231cedc6 100644 --- a/src/views/dashboard/related/continuous-profiling/components/Policy.vue +++ b/src/views/dashboard/related/continuous-profiling/components/Policy.vue @@ -53,10 +53,6 @@ limitations under the License. --> @change="changeMonitorType($event, index)" /> -