codecentric / spring-boot-admin

Admin UI for administration of spring boot applications
Apache License 2.0
12.33k stars 3.08k forks source link

Support for Spring Cloud Gateway Actuator Endpoint #993

Closed wtatum closed 5 years ago

wtatum commented 5 years ago

We've been using Spring Cloud Gateway as our API gateway, as well as for some internal routing between services. It seems like a great up and comer to Zuul, and ties in with Spring Boot and Spring Cloud really nicely.

Are there any plans to support the /actuator/gateway endpoints which are exposed by Spring Cloud Gateway? Unfortunately the reference manual doesn't yet include many details about the actuator API, but it's fairly straightforward and works well over direct GET/POST.

joshiste commented 5 years ago

I don't have this planned and as I am not a SC-Gateway user it will probably never be on my todo list. But contributions are always welcome.

wtatum commented 5 years ago

Okay, thanks for the quick reply.

zqr95518 commented 5 years ago

The wrong place seems to be here.

<base th:href="${baseUrl}" href="/">
joshiste commented 5 years ago

@zqr95518 Your post is totally unrelated to this issue

zqr95518 commented 5 years ago

@joshiste No, it may releted. I access the page from gateway with http://{gateway:port}/admin/login. And the js and css not get correctly due to the url become http://{gateway:port}/xxxxxx.js but it should be http://{gateway:port}/admin/xxxxxx.js.

joshiste commented 5 years ago

@zqr95518 this issue is about supporting spring cloud gateways actuator endpoint. Not running behind it.

zqr95518 commented 5 years ago

Oh, it's my fault. Although we both need them. ☺

mzorba commented 5 years ago

Work is in progress on this. You can expect pull request very soon.

sb-admin-gateway-ss

joshiste commented 5 years ago

looks nice

valera7979 commented 5 years ago

It doesn't work for me. I have SpringBootAdmin application. When I trying to path throw gateway server on Spring admin server I see that Spring-admin server tries get front files from http://{gateway:port}/xxxxxx.js instead http://{gateway:port}/admin/xxxxxx.js exactly as described by @zqr95518 earlier.

joshiste commented 5 years ago

@valera7979 the issues is not about running SBA behind spring cloud gateway. But this chapter might be worthy to read: https://codecentric.github.io/spring-boot-admin/current/#_running_behind_a_front_end_proxy_server