Add route to status API `/debugging/config/dump` in the UI (#13266)

This commit is contained in:
kezhenxu94 2025-05-26 19:23:07 +08:00 committed by GitHub
parent 37fbcce9bc
commit fd82275a3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 0 deletions

View File

@ -68,6 +68,9 @@ public class ApplicationStartUp {
.builder() .builder()
.port(port, SessionProtocol.HTTP) .port(port, SessionProtocol.HTTP)
.service("/graphql", new OapProxyService(oapServices)) .service("/graphql", new OapProxyService(oapServices))
.service("/debugging/config/dump", new OapProxyService(oapServices))
.service("/status/config/ttl", new OapProxyService(oapServices))
.service("/status/cluster/nodes", new OapProxyService(oapServices))
.service("/internal/l7check", HealthCheckService.of()) .service("/internal/l7check", HealthCheckService.of())
.service("/zipkin/config.json", zipkin) .service("/zipkin/config.json", zipkin)
.serviceUnder("/zipkin/api", zipkin) .serviceUnder("/zipkin/api", zipkin)

View File

@ -76,4 +76,9 @@ public final class OapProxyService extends AbstractHttpService {
protected HttpResponse doPost(ServiceRequestContext ctx, HttpRequest req) throws Exception { protected HttpResponse doPost(ServiceRequestContext ctx, HttpRequest req) throws Exception {
return loadBalancingClient.execute(req); return loadBalancingClient.execute(req);
} }
@Override
protected HttpResponse doGet(ServiceRequestContext ctx, HttpRequest req) throws Exception {
return loadBalancingClient.execute(req);
}
} }

View File

@ -29,6 +29,7 @@
* Fix: correct the same labels for metrics. * Fix: correct the same labels for metrics.
* Refactor: use the Fetch API to instead of Axios. * Refactor: use the Fetch API to instead of Axios.
* Support cold stage data for metrics, trace and log. * Support cold stage data for metrics, trace and log.
* Add route to status API `/debugging/config/dump` in the UI.
#### Documentation #### Documentation