mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:49:24 +00:00
fix labels
This commit is contained in:
parent
7341243377
commit
266fda2747
@ -26,7 +26,10 @@ export function useSnapshot(metrics: { name: string; results: MetricsResults[] }
|
|||||||
return { values: arr };
|
return { values: arr };
|
||||||
}
|
}
|
||||||
const name = r.metric.labels
|
const name = r.metric.labels
|
||||||
.map((label: { key: string; value: string }) => `${label.key}=${label.value}`)
|
.map(
|
||||||
|
(label: { key: string; value: string }) =>
|
||||||
|
`${metric.name}${label ? "{" : ""}${label.key}=${label.value}${label ? "}" : ""}`,
|
||||||
|
)
|
||||||
.join(",");
|
.join(",");
|
||||||
return { name, values: arr };
|
return { name, values: arr };
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user