Configuring Ozone to work with Prometheus

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.
  1. 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/
  2. Using Cloudera Manager, add the Ozone Prometheus role instance to the Ozone service.
    For more information about adding role instances using Cloudera Manager, see Adding a role instance.
  3. Start the Ozone Prometheus role instance.
    For information about starting role instances using Cloudera Manager, see Starting, stopping, and restarting role instances.
    After starting the role instance, the Prometheus Web UI quick link is added to the Ozone Prometheus page on Cloudera Manager.
  4. 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.
  5. 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.