Monitoring
In this recipe, we will set up monitoring for Mesos.
Getting ready
We must have a running monitoring ecosystem. Metrics storage could be a simple time-series database such as graphite
, influxdb
, or prometheus
. In the following example, we are using graphite and our metrics are published with http://diamond.readthedocs.io/en/latest/.
How to do it...
Monitoring is enabled by default. Mesos does not provide any way to automatically push metrics to the registry. However, it exposes them as a JSON that can be periodically pulled and saved into the metrics registry:
- Install Diamond using following command:
pip install diamond
- If additional packages are required to install them, run:
sudo apt-get install python-pip python-dev build-essential.
Note
pip
(Pip Installs Packages) is a Python package manager used to install software written in Python.
- Configure the metrics handler and interval. Open
/etc/diamond/diamond.conf
and ensure that there is a section for graphite configuration:
[handler_graphite...