Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enabled Spring Boot Admin endpoints? #10

Open
lzkill opened this issue Nov 7, 2019 · 7 comments
Open

How to enabled Spring Boot Admin endpoints? #10

lzkill opened this issue Nov 7, 2019 · 7 comments

Comments

@lzkill
Copy link

lzkill commented Nov 7, 2019

How can we enable Spring Boot Admin endpoints like /actuator? In the fresh project all endpoints are handled by JSF.

Thanks!

@rmpestano
Copy link
Contributor

Hi, do you have a sample project? I think you'll need to use admin.skipResources so AdminFaces filter doesn't interfere on actuator endpoints.

See bullet 14 here: https://adminfaces.github.io/docs/1.0.0/index.html#configuration

I hope It helps

@lzkill
Copy link
Author

lzkill commented Nov 8, 2019

I get a 404 when admin-config.properties has the following line:

admin.ignoredResources=/actuator,/actuator/health

How can we check if jsf is avoiding the SPA servlet to handle the request?

@lzkill
Copy link
Author

lzkill commented Nov 8, 2019

Maybe you can take a look at the project: admin-faces-spring-boot

@rmpestano
Copy link
Contributor

rmpestano commented Nov 10, 2019

Hi, what do I need to do in order to make the application start? I'm getting following error at startup:

2019-11-10 07:27:45.349  INFO 29423 --- [           main] br.com.cesan.biconfig.AdminBootMain      : Started AdminBootMain in 9.233 seconds (JVM running for 9.661)
2019-11-10 07:27:45.710  WARN 29423 --- [gistrationTask1] d.c.b.a.c.r.ApplicationRegistrator       : Failed to register application as Application(name=admin-faces-spring-boot, managementUrl=http://oss-powerhouse:8080/actuator, healthUrl=http://oss-powerhouse:8080/actuator/health, serviceUrl=http://oss-powerhouse:8080/) at spring-boot-admin ([http://boot-admin:8080/instances]): I/O error on POST request for "http://boot-admin:8080/instances": boot-admin; nested exception is java.net.UnknownHostException: boot-admin. Further attempts are logged on DEBUG level

Probably I need to start actuator/admin before starting the app but can you tell me which versions and parameters are you using?

@rmpestano
Copy link
Contributor

Looking here looks like I need a springboot admin server, do you have a sample server application to share as well?

@lzkill
Copy link
Author

lzkill commented Nov 11, 2019

Spring Boot Admin can be started locally as a regular boot application (look here). The message you see it's just a warning showing that the app couldn't register itself in the Spring Boot Admin Server specified. When it does, SPA starts polling the app in the /actuator endoint, exposed by the spring-boot-admin-starter-client dependency. So, the only thing preventing the monitoring to work is a no access to /actuator.

@rmpestano
Copy link
Contributor

I didn't had time to test yet (sorry) but what occurred to me is that we should try actuator only with JoinFaces, have you tried that? just to make sure it is a adminfaces issue.

Can you make that test? thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants