Monitoring your microservice logs in Mesos
We've already seen that viewing logs in Marathon is not very easy. Oftentimes, you will want to perform more advanced operations, such as tailing logs, viewing logs on screen, or viewing multiple logs at the same time. Fortunately, you can do this using Mesos. In this recipe, we will learn how to monitor application logs-in other words, task logs-using the Mesos web UI.
Getting ready
To check this out, deploy the geolocation microservice using Marathon. If you have to restart your Mesos cluster, do so. In Marathon, use JSON mode and the JSON that was used in recipe Scaling your Microservice in Marathon to deploy the application.
How to do it...
Once your application has started, go to the Mesos web interface using the URL
http://192.168.99.100:5050
, and verify that your application's task is running:From the preceding screenshot, you can see that there is one active task and several completed tasks for the geolocation microservice. The completed tasks...