[GH-ISSUE #5723] [Feature]: Observatory metrics UI update #3982

Open
opened 2026-10-31 20:36:19 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @beevar-u on GitHub (Jul 1, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5723

Currently User have to select outbound tag by tag in observatory metrics panel to view latency history for all outbounds.

Describe the solution you'd like

I think it will be usefull to make an option to display all outbounds data on one chart.
I understood that with 10+ outbounds it may be useless or hard to understood graphs, but this can be solved by filters or multy-select option or something similar..

Alternatives you've considered

No response

Concrete use case

No response

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

No response

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @beevar-u on GitHub (Jul 1, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5723 ### Is your feature request related to a problem? Currently User have to select outbound tag by tag in observatory metrics panel to view latency history for all outbounds. ### Describe the solution you'd like I think it will be usefull to make an option to display all outbounds data on one chart. I understood that with 10+ outbounds it may be useless or hard to understood graphs, but this can be solved by filters or multy-select option or something similar.. ### Alternatives you've considered _No response_ ### Concrete use case _No response_ ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? _No response_ ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 1, 2026):

Confirmed this is not currently supported, based on the code.

The Observatory tab in the metrics modal (frontend/src/pages/index/XrayMetricsModal.tsx) only lets you pick one outbound tag at a time via a single-select dropdown (obs-select), then renders one latency history chart for it, fetched from GET /panel/api/server/xrayObservatoryHistory/:tag/:bucket.

On the backend (internal/web/service/xray_metrics.go), each outbound's delay history is stored and aggregated independently per tag (xrObs.<tag>.delay, see AggregateObservatory). There is no endpoint today that returns multiple tags' history in a single response — only one tag per request.

Interestingly, the shared chart component (frontend/src/components/viz/Sparkline.tsx) already supports overlaying up to 3 series with a legend (data/data2/data3 props), but the Observatory pane doesn't use that capability — it only ever feeds a single series. So a combined view is partially enabled at the charting layer already; it would need:

  • The Observatory pane's tag picker changed to multi-select (or a "select all" option).
  • A way to fetch/aggregate history for several tags at once instead of one call per tag.
  • The Sparkline component's series limit extended beyond 3, since with 10+ outbounds (as you noted) a fixed 3-series cap wouldn't be enough — some kind of filtering or grouping would be needed for larger outbound counts.

This looks like a reasonable, scoped enhancement to the existing Observatory UI rather than a new subsystem. Labeling as a feature request; if you'd like to attempt a PR, the two relevant files are the ones listed above.

This reply was generated automatically and a maintainer may follow up.

<!-- gh-comment-id:4859552311 --> @github-actions[bot] commented on GitHub (Jul 1, 2026): Confirmed this is not currently supported, based on the code. The Observatory tab in the metrics modal (`frontend/src/pages/index/XrayMetricsModal.tsx`) only lets you pick **one** outbound tag at a time via a single-select dropdown (`obs-select`), then renders one latency history chart for it, fetched from `GET /panel/api/server/xrayObservatoryHistory/:tag/:bucket`. On the backend (`internal/web/service/xray_metrics.go`), each outbound's delay history is stored and aggregated independently per tag (`xrObs.<tag>.delay`, see `AggregateObservatory`). There is no endpoint today that returns multiple tags' history in a single response — only one tag per request. Interestingly, the shared chart component (`frontend/src/components/viz/Sparkline.tsx`) already supports overlaying up to 3 series with a legend (`data`/`data2`/`data3` props), but the Observatory pane doesn't use that capability — it only ever feeds a single series. So a combined view is partially enabled at the charting layer already; it would need: - The Observatory pane's tag picker changed to multi-select (or a "select all" option). - A way to fetch/aggregate history for several tags at once instead of one call per tag. - The `Sparkline` component's series limit extended beyond 3, since with 10+ outbounds (as you noted) a fixed 3-series cap wouldn't be enough — some kind of filtering or grouping would be needed for larger outbound counts. This looks like a reasonable, scoped enhancement to the existing Observatory UI rather than a new subsystem. Labeling as a feature request; if you'd like to attempt a PR, the two relevant files are the ones listed above. *This reply was generated automatically and a maintainer may follow up.*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3982
No description provided.