Page 1 of 1
Monitoring Application in Docker container
Posted: Wed Feb 20, 2019 12:57 pm
by mohan23
Hi ,
I want to monitor an application that is being hosted in a docker container. Is there any way to monitor this using NagiosXI?
If yes, Please let me know all the possible ways of monitoring an application that is in container.
Regards,
Mohan
Re: Monitoring Application in Docker container
Posted: Wed Feb 20, 2019 4:53 pm
by benjaminsmith
Hi
@Mohan,
Nagios XI has built-in Docker Wizard to help configure monitoring. The wizard uses either our NCPA agent or the Docker Remote API for configuration. Can you let me know which application your're trying to monitor and I can provide some more detail.
Please take a look at the guide below to get started.
How To Monitor Docker Containers With Nagios XI
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Re: Monitoring Application in Docker container
Posted: Thu Feb 21, 2019 10:12 am
by mohan23
we want to monitor "spring boot application" which is in docker container.
Re: Monitoring Application in Docker container
Posted: Thu Feb 21, 2019 12:57 pm
by benjaminsmith
Hi
@Mohan23,
Monitoring Java applications typically done with
JMX. We don't have an official guide on how to setup this up from within a Docker container, but it looks like JMX is accessible from within Spring Boot.
Monitoring JMX With Nagios XI
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Take a look at the guide and let me know if you have any questions.
Re: Monitoring Application in Docker container
Posted: Thu Feb 21, 2019 4:14 pm
by mcapra
The only caveat I can think of is you'd need to be sure that the Spring Boot app's JMX port within the container is mapped to an acceptable port on the host.
https://docs.docker.com/config/containe ... etworking/
More info on running boot apps with JMX:
https://docs.spring.io/spring-boot/docs ... y-jmx.html
https://stackoverflow.com/questions/294 ... x-remotely
Re: Monitoring Application in Docker container
Posted: Thu Feb 21, 2019 4:17 pm
by benjaminsmith
Thanks
@mcapra for the input.