Monitoring your microservice logs in Marathon
So far, we have learned how to deploy, scale, suspend, and destroy our microservice in a Mesos cluster using Marathon. All these steps are part of your deployment process, but there is one thing you would want to do post deployment: monitor the logs. In this recipe, we will look at how to monitor our application logs using Marathon.
Getting ready
Fortunately, there is an easy way to look at your application's log files using Marathon's web interface. Though it is not very user friendly, it is still possible. To illustrate this, let's 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 geolocation application's page in Marathon. You will see that one instance of your application is running. Click on the running...