In this recipe, we will set up monitoring for Mesos.
We must have a running monitoring ecosystem. Metrics storage could be a simple time-series database such as
prometheus. In the following example, we are using graphite and our metrics are published with http://diamond.readthedocs.io/en/latest/.
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.
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.confand ensure that there is a section for graphite configuration: