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.
-
Identify the Prometheus endpoint URL.
- Sign in to Cloudera Manager.
- In the left navigation, click Clusters and select the Ozone cluster.
- Go to the Instances tab.
- In the Filters section, select Ozone Prometheus in the ROLE TYPE drop-down menu.
- In the Role Type column, click the relevant Ozone Prometheus instance. The Ozone Prometheus UI opens.
- Open the Prometheus Web UI.
- Copy the HTTP hostname of the Ozone Prometheus Web UI and paste it in a text editor.
- Sign in to Cloudera Manager.
- In the left navigation, click Clusters and select the Ozone cluster.
- Go to the Instances tab and click Ozone Tiering in the Role Type column. The Cloudera Storage Optimizer UI page is displayed.
- Go to the Configuration tab.
-
Search for Ozone Tiering Advanced Configuration Snippet (Safety
Valve) for ozone-conf/ozone-site.xml and add the following
values:
- Name: ozone.tiering.prometheus.http.endpoint
- 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.
- Click Save Changes.
