Monitoring with Prometheus
Ozone supports Prometheus out of the box. The servers start a prometheus compatible metrics endpoint where all the available hadoop metrics are published in prometheus exporter format.
- Download the prometheus binary.
- To enable the Prometheus metrics endpoint you need to add a new configuration to the file.
Note: for Docker compose based pseudo cluster put the
line to the file.
Restart the Ozone Manager and Storage Container Manager and check the prometheus endpoints:
Create a prometheus.yaml configuration with the previous endpoints:
- Start with prometheus from the directory where you have the prometheus.yaml file:
- Check any metrics on the prometheus web ui.
For example:
The ozone distribution contains a ready-to-use, dockerized environment to try out ozone and Prometheus. It can be found under directory.