-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
JMX and logging section doesn't show up #72
Comments
Did you have a look at the endpoints via browser? Is the information provided there? |
The application itself is secured but the /info, /logfile and /health endpoints are not and the missing information is also provided there. |
Resolved an internal issue with my local vagrant setup which caused invalid hostnames :-( Now I can download the log file, see the version number and proper health information. What property has to be set in order to provide proper content for the 'info' column? Another issue is logging. The list in Details -> Logging is always empty. I've tried to set some additional |
The way you described the info column to work is the intended one. The logging view only works if you are using logback and is relying on jmx access via jolokia... |
Hi johannes, Currently using SpringBoot 1.2.3.RELEASE , and BootAdmin 1.2.0. And yes, i'm using logback, with a working logback.xml file. See my app log 2015-05-14 16:22:59,469 INFO o.s.j.e.MBeanExporter | Registering beans for JMX exposure on startup and when i do curl http://my-app/jolokia {"request":{"type":"version"},"value":{"agent":"1.2.3","protocol":"7.2","config":{"agentId":"172.17.42.1-29992-7ece51a6-servlet","agentType":"servlet"},"info":{"product":"tomcat","vendor":"Apache","version":"8.0.22"}},"timestamp":1431613883,"status":200} Any idea ? |
You need to activate the JMX-Configurator in Logback: Did you have a look at your browers console in jmx view? Is there any error showing up? |
No change. Still nothing even if i added that option to logback.xml |
So can you take a look at the network console looking at the request/responses? |
Or maybe an browser issue? What browser are you using? Did you try latest chrome or ff? |
Adding a logback.xml to my application resolved the missing logger configuration issue. Thx! |
@josetesan Do you have any unresolved problems? can this Issue be closed? |
Sorry for the delay :-( This looks like the cause of the problem ? |
the boot admin server serves as a zuul reverese proxy on /api/applications//* so the request is forwarded to your client app. And I assume there is security with csrf protection active? |
Yes, there is — On Sat, May 16, 2015 at 10:03 PM, Johannes Stelzer
|
So, do I have to disable csrf ? Or how can I allow server connect back to client ? |
For the JMX and logging section posting to /jolokia is required. So you sholud disable csrf for this endpoint. |
Just to let you know by adding to the HttpSecurity configuration made this work. |
Created a standalone spring-boot-admin-server application including spring-boot-admin-server-ui.
In my already existing spring boot application I've added spring-boot-admin-client and spring-boot-starter-actuator. Furthermore I've added following properties in my already existing application:
info.build.artifact
info.build.name
info.build.description
info.version
spring.application.name
logging.file
In my new spring-boot-admin-server application the dashboard contains one entry for my already existing app but the entry is missing the respective information in the 'version' and 'info' columns. Additionally the logfile download does not work (button is disabled). The /logfile endpoint in my already existing spring boot application works as expected.
The text was updated successfully, but these errors were encountered: