[GH-ISSUE #6624] [Feature]: Per-balancer Observatory / BurstObservatory settings #4431

Open
opened 2026-10-31 20:39:37 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @NooNooJoo on GitHub (Sep 23, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6624

The panel has two separate places where multiple balancers can be defined, each with its own "Observatory" tab next to the balancer list:

Panel's own Xray config — the "Balancer settings" / "Observatory" tabs. Multiple balancer rows can be added, each with its own strategy, selector and fallback, but the Observatory tab only exposes a single probe config that is shared by every balancer row in that table.
JSON-subscription balancers — the "Balancer" / "Observatory" tabs, where each enabled balancer row is exported into the JSON subscription as its own profile (routing.balancers + burstObservatory in the client config). Same limitation: several balancer rows can be created, each covering different inbounds, but only one shared Observatory config applies to all of them.

In both places, defining multiple balancers is fully supported, but each balancer is still forced to use identical health-check behavior (probe URL, interval, timeout, tolerance), because Observatory is configured once per table instead of once per balancer.

Describe the solution you'd like

In both the panel's Xray-balancer table and the JSON-subscription-balancer table, let each balancer row have its own, independent Observatory / BurstObservatory configuration, instead of one config shared across the whole table.
If a balancer row has no per-balancer Observatory settings configured, fall back to the current shared/default config (backward compatible).
Generate the resulting config accordingly: for the panel's own Xray config, emit a distinct observatory block per balancer that has its own settings (Xray-core supports multiple named observatories referenced by tag); for JSON subscriptions, emit a distinct burstObservatory block per exported balancer profile.

Alternatives you've considered

Using one shared probe config tuned as a compromise for every balancer in the table — works, but forces identical probe frequency/tolerance on all balancers regardless of how different their roles or endpoints are.
Splitting balancer groups across multiple panels — defeats the purpose of managing several balancer strategies from a single panel/subscription.

Concrete use case

I have several balancer rows configured, both in the panel's own Xray balancer table and in the JSON-subscription balancer table, each grouping different inbounds/outbounds for a different purpose. All of them are currently forced to share one Observatory configuration, even though each balancer would ideally have its own probe settings tuned to its own endpoints and use case — especially in the JSON-subscription balancers, where each row is already exported as an independent client-facing profile.

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

Xray config generation, Subscription (share links / Clash / JSON), Frontend (UI / panel pages)

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 @NooNooJoo on GitHub (Sep 23, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6624 ### Is your feature request related to a problem? The panel has two separate places where multiple balancers can be defined, each with its own "Observatory" tab next to the balancer list: Panel's own Xray config — the "Balancer settings" / "Observatory" tabs. Multiple balancer rows can be added, each with its own strategy, selector and fallback, but the Observatory tab only exposes a single probe config that is shared by every balancer row in that table. JSON-subscription balancers — the "Balancer" / "Observatory" tabs, where each enabled balancer row is exported into the JSON subscription as its own profile (routing.balancers + burstObservatory in the client config). Same limitation: several balancer rows can be created, each covering different inbounds, but only one shared Observatory config applies to all of them. In both places, defining multiple balancers is fully supported, but each balancer is still forced to use identical health-check behavior (probe URL, interval, timeout, tolerance), because Observatory is configured once per table instead of once per balancer. ### Describe the solution you'd like In both the panel's Xray-balancer table and the JSON-subscription-balancer table, let each balancer row have its own, independent Observatory / BurstObservatory configuration, instead of one config shared across the whole table. If a balancer row has no per-balancer Observatory settings configured, fall back to the current shared/default config (backward compatible). Generate the resulting config accordingly: for the panel's own Xray config, emit a distinct observatory block per balancer that has its own settings (Xray-core supports multiple named observatories referenced by tag); for JSON subscriptions, emit a distinct burstObservatory block per exported balancer profile. ### Alternatives you've considered Using one shared probe config tuned as a compromise for every balancer in the table — works, but forces identical probe frequency/tolerance on all balancers regardless of how different their roles or endpoints are. Splitting balancer groups across multiple panels — defeats the purpose of managing several balancer strategies from a single panel/subscription. ### Concrete use case I have several balancer rows configured, both in the panel's own Xray balancer table and in the JSON-subscription balancer table, each grouping different inbounds/outbounds for a different purpose. All of them are currently forced to share one Observatory configuration, even though each balancer would ideally have its own probe settings tuned to its own endpoints and use case — especially in the JSON-subscription balancers, where each row is already exported as an independent client-facing profile. ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? Xray config generation, Subscription (share links / Clash / JSON), Frontend (UI / panel pages) ### 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.
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#4431
No description provided.