You can configure your Ozone cluster to enable Prometheus for real time monitoring of the cluster.
To enable Prometheus to work on your Ozone cluster, you
must download the required binary to a specific parcel directory, and use Cloudera
Manager to add the Ozone Prometheus role instance.
Download the Prometheus binary from https://github.com/prometheus/prometheus/releases/tag/v2.16.0 and untar it to the following internal parcel
directory on the host where you want Prometheus installed:
/opt/cloudera/parcels/CDH/lib/hadoop-ozone/share/
Using Cloudera Manager, add the Ozone Prometheus role
instance to the Ozone service.
note
If you do not see Ozone Prometheus in the list of
role instances to configure, it means that the role instance is not
configured correctly. In this situation, the Prometheus logs
(/var/log/hadoop-ozone/ozone-prometheus.log
) on the
Prometheus instance host show a FileNotFound
error.
Start the Ozone Prometheus role instance.
After starting the role instance, the Prometheus Web UI
quick link is added to the Ozone Prometheus page on Cloudera Manager.
Click the Prometheus Web UI quick link to launch the
web user interface on a separate browser window.
The metrics drop-down list displays various metrics from the Ozone
daemons.
Select any metric from the drop-down list or enter the name of a metric and
click Execute .
Click the Graph or Console tab
to view further details.