Configuring Prometheus endpoint

Configure the Prometheus endpoint for Cloudera Storage Optimizer by adding the HTTP-only URL to the Ozone Tiering Advanced Configuration Snippet (Safety Valve) for ozone-conf/ozone-site.xml in Cloudera Manager.

  1. Identify the Prometheus endpoint URL.
    1. Sign in to Cloudera Manager.
    2. In the left navigation, click Clusters and select the Ozone cluster.
    3. Go to the Instances tab.
    4. In the Filters section, select Ozone Prometheus in the ROLE TYPE drop-down menu.
    5. In the Role Type column, click the relevant Ozone Prometheus instance. The Ozone Prometheus UI opens.
    6. Open the Prometheus Web UI.
    7. Copy the HTTP hostname of the Ozone Prometheus Web UI and paste it in a text editor.
  2. Sign in to Cloudera Manager.
  3. In the left navigation, click Clusters and select the Ozone cluster.
  4. Go to the Instances tab and click Ozone Tiering in the Role Type column. The Cloudera Storage Optimizer UI page is displayed.
  5. Go to the Configuration tab.
  6. Search for Ozone Tiering Advanced Configuration Snippet (Safety Valve) for ozone-conf/ozone-site.xml and add the following values:
    1. Name: ozone.tiering.prometheus.http.endpoint
    2. Value: <***OZONE-PROMETHEUS-ENDPOINT-URL***>: <***HTTP-PORT***>
      Replace the placeholders with the following values:
      • <***OZONE-PROMETHEUS-ENDPOINT-URL***> – The Prometheus hostname that you have copied in 1.g.
      • <***HTTP-PORT***> – The HTTP port number. The default is 9096.
  7. Click Save Changes.