mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:52:57 +00:00
fix: node metrics
This commit is contained in:
parent
03f321b62a
commit
9b268813f5
@ -485,7 +485,7 @@ export const topologyStore = defineStore({
|
||||
}
|
||||
const { getExpressionQuery, handleExpressionValues } = useQueryTopologyExpressionsProcessor(
|
||||
expressions,
|
||||
this.nodes,
|
||||
this.nodes.filter((d: Node) => d.isReal),
|
||||
);
|
||||
const param = getExpressionQuery();
|
||||
const res = await this.getNodeExpressionValue(param);
|
||||
|
@ -318,13 +318,12 @@ limitations under the License. -->
|
||||
opt.unit || "unknown"
|
||||
}</div>`;
|
||||
});
|
||||
const tipHtml = [
|
||||
`<div class="mb-5"><span class="grey">name: </span>${
|
||||
let tipHtml = `<div class="mb-5"><span class="grey">name: </span>${
|
||||
data.name
|
||||
}</div><div class="mb-5"><span class="grey">type: </span>${data.type || "UNKNOWN"}</div>`,
|
||||
...html,
|
||||
].join(" ");
|
||||
|
||||
}</div><div class="mb-5"><span class="grey">type: </span>${data.type || "UNKNOWN"}</div>`;
|
||||
if (data.isReal) {
|
||||
tipHtml = [tipHtml, ...html].join(" ");
|
||||
}
|
||||
tooltip.value
|
||||
.style("top", event.offsetY + 10 + "px")
|
||||
.style("left", event.offsetX + 10 + "px")
|
||||
@ -520,7 +519,11 @@ limitations under the License. -->
|
||||
}
|
||||
function initNodeMenus() {
|
||||
items.value = [
|
||||
{ id: "hierarchyServices", title: "Hierarchy Services", func: handleHierarchyRelatedServices },
|
||||
{
|
||||
id: "hierarchyServices",
|
||||
title: "Hierarchy Services",
|
||||
func: handleHierarchyRelatedServices,
|
||||
},
|
||||
{ id: "inspect", title: "Inspect", func: handleInspect },
|
||||
{ id: "alerting", title: "Alerting", func: handleGoAlerting },
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user