OpenTelemetry gateway is enabled on a cluster

If the gateway is enabled on your cluster, you must add the proxy_url in Otelcol Gateway Metrics Exporter and Otelcol Gateway RTM Logs Exporter in Cloudera Manager.

Adding proxy_url in Otelcol RTM Logs Exporter and Otelcol Metrics Exporter

  1. Log in to Cloudera Manager > Hosts > Hosts Configuration
  2. Search for otelcol_gateway_external_logs_exporter and add the proxy_url configuration. For example,
    exporter_timeout:
      timeout: '45s'
    retry_on_failure:
      enabled: false
    proxy_url: http://proxy-host:port
    auth:
      authenticator: $CDPAUTH_LOGS_EXTENSION_NAME
  3. Search for otelcol_gateway_external_metrics_exporter and add the proxy_url configuration. For example,
    prometheusremotewrite/gateway-<rr_connector_count>:
        endpoint: $HOST_PARAM(otelcol_remote_write_url)
        timeout: 30s
        retry_on_failure:
          enabled: true
          initial_interval: 10s
          max_interval: 40s
          max_elapsed_time: 300s
        target_info:
          enabled: false
        auth:
          authenticator: cdpauth/gateway
        proxy_url: http://proxy-host:port
  4. Click Save Changes.

    Changes will take effect automatically within five minutes.