Reader small image

You're reading from  Apache Mesos Cookbook

Product typeBook
Published inAug 2017
PublisherPackt
ISBN-139781785884627
Edition1st Edition
Right arrow
Authors (2):
David Blomquist
David Blomquist
author image
David Blomquist

David Blomquist been working with computers since the 1980s. His first computer was an Apple Macintosh and the first networked computer he managed was a 10 terminal Xenix system. Since that time, David has held positions in virtually every area of IT, including operations, development, and architecture. David now specializes in designing Big Data, HPC, and Grid Computing systems with applications in Health Care and Science. Most recently, he has designed and deployed several large-scale clusters for the Federal Government.
Read more about David Blomquist

View More author details
Right arrow

Monitoring Marathon


Marathon can send logs and metrics to dedicated systems, such as Kibana for logs and Graphite for metrics. To enable them, we need to change the configuration. In this recipe, you will learn how to collect logs and metrics from Marathon.

Getting ready

Before you start, ensure Marathon is up and running. In this recipe, we will assume you have a running Graphite instance at http://graphite.readthedocs.io/en/latest/install.html.

How to do it...

In the following example, we assume Graphite is reachable at graphite.local at port 2003 and accepts TCP packages. The following configuration instructs Marathon to send metrics every 30 seconds and to prefix them with marathon:

cat << EOF >> /etc/default/marathon
MARATHON_REPORTER_GRAPHITE=tcp://graphite.local:2003?prefix=marathon&interval=30
EOF

Enabling logging with logstash is similar. Let's assume logstash reads incoming logs at logstash.local at port 5000:

cat << EOF >> /etc/default/marathon
MARATHON_LOGSTASH...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Apache Mesos Cookbook
Published in: Aug 2017Publisher: PacktISBN-13: 9781785884627

Authors (2)

author image
David Blomquist

David Blomquist been working with computers since the 1980s. His first computer was an Apple Macintosh and the first networked computer he managed was a 10 terminal Xenix system. Since that time, David has held positions in virtually every area of IT, including operations, development, and architecture. David now specializes in designing Big Data, HPC, and Grid Computing systems with applications in Health Care and Science. Most recently, he has designed and deployed several large-scale clusters for the Federal Government.
Read more about David Blomquist