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 ...

Get Microservices Deployment Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.