This is an automated email from the ASF dual-hosted git repository.
wu-sheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-horizon-ui.git
The following commit(s) were added to refs/heads/main by this push:
new ac97042 mesh + general: drop only layerScope:true line from top_apis
ac97042 is described below
commit ac97042dcd819af5187937daae8b0cace2e0e40e
Author: Wu Sheng <[email protected]>
AuthorDate: Sun May 17 00:01:10 2026 +0800
mesh + general: drop only layerScope:true line from top_apis
Earlier commits over-corrected — the widget was removed (a0e25da)
then re-added with a different size/sibling-set (17d3a71), breaking
the original layout. Revert to the layout at 2c2e3c7 and apply the
minimal change instead: just delete the `layerScope: true` line.
That leaves every other widget — position, span, rowSpan, the sibling
top_endpoints_in_service / top_instance_* widgets — exactly where they
were. The top_apis widget itself stays in its original size (span 3,
rowSpan 4) but now runs with the default Service-scope entity, so it
ranks endpoints UNDER the selected service instead of `{ scope: All }`
which leaked across layers.
Tip text updated to reflect the per-service ranking.
---
apps/bff/src/bundled_templates/layers/general.json | 30 +++++++++---------
apps/bff/src/bundled_templates/layers/mesh.json | 37 ++++++++++++++++++----
2 files changed, 45 insertions(+), 22 deletions(-)
diff --git a/apps/bff/src/bundled_templates/layers/general.json
b/apps/bff/src/bundled_templates/layers/general.json
index 249b34d..4319636 100644
--- a/apps/bff/src/bundled_templates/layers/general.json
+++ b/apps/bff/src/bundled_templates/layers/general.json
@@ -72,6 +72,21 @@
},
"dashboards": {
"service": [
+ {
+ "id": "top_apis",
+ "title": "Top 20 APIs",
+ "tip": "Top endpoints under the selected service. Switch tabs to
re-rank by traffic, response time, or worst success rate.",
+ "type": "top",
+ "expressions": [
+ "top_n(endpoint_cpm,20,des)",
+ "top_n(endpoint_resp_time,20,des)",
+ "top_n(endpoint_sla,20,asc)/100"
+ ],
+ "expressionLabels": ["Traffic", "Slow", "Successful Rate"],
+ "expressionUnits": ["rpm", "ms", "%"],
+ "span": 3,
+ "rowSpan": 4
+ },
{
"id": "traffic_line",
"title": "Traffic",
@@ -174,21 +189,6 @@
"expressions": ["top_n(top_n_service_database_statement, 20, des)"],
"span": 12,
"rowSpan": 4
- },
- {
- "id": "top_apis",
- "title": "Top 20 APIs",
- "tip": "Top endpoints under the selected service, by traffic /
slowness / worst success rate.",
- "type": "top",
- "expressions": [
- "top_n(endpoint_cpm,20,des)",
- "top_n(endpoint_resp_time,20,des)",
- "top_n(endpoint_sla,20,asc)/100"
- ],
- "expressionLabels": ["Traffic", "Slow", "Successful Rate"],
- "expressionUnits": ["rpm", "ms", "%"],
- "span": 12,
- "rowSpan": 4
}
],
"instance": [
diff --git a/apps/bff/src/bundled_templates/layers/mesh.json
b/apps/bff/src/bundled_templates/layers/mesh.json
index 4e6ef65..296c889 100644
--- a/apps/bff/src/bundled_templates/layers/mesh.json
+++ b/apps/bff/src/bundled_templates/layers/mesh.json
@@ -99,6 +99,29 @@
},
"dashboards": {
"service": [
+ {
+ "id": "top_apis",
+ "title": "Top 20 APIs",
+ "tip": "Top endpoints under the selected service. Switch tabs to
re-rank by traffic, response time, or worst success rate.",
+ "type": "top",
+ "expressions": [
+ "top_n(endpoint_cpm,20,des)",
+ "top_n(endpoint_resp_time,20,des)",
+ "top_n(endpoint_sla,20,asc)/100"
+ ],
+ "expressionLabels": [
+ "Traffic",
+ "Slow",
+ "Successful Rate"
+ ],
+ "expressionUnits": [
+ "rpm",
+ "ms",
+ "%"
+ ],
+ "span": 3,
+ "rowSpan": 4
+ },
{
"id": "traffic_line",
"title": "Traffic",
@@ -214,14 +237,14 @@
"rowSpan": 3
},
{
- "id": "top_apis",
- "title": "Top 20 APIs",
- "tip": "Top endpoints under the selected service, by traffic /
slowness / worst success rate.",
+ "id": "top_endpoints_in_service",
+ "title": "Top 10 endpoints in service",
+ "tip": "Ranked across the selected service's endpoints.",
"type": "top",
"expressions": [
- "top_n(endpoint_cpm,20,des)",
- "top_n(endpoint_resp_time,20,des)",
- "top_n(endpoint_sla,20,asc)/100"
+ "top_n(endpoint_cpm,10,des)",
+ "top_n(endpoint_resp_time,10,des)",
+ "top_n(endpoint_sla,10,asc)/100"
],
"expressionLabels": [
"Traffic",
@@ -234,7 +257,7 @@
"%"
],
"span": 6,
- "rowSpan": 4
+ "rowSpan": 3
}
],
"instance": [