×

The steps for removing the distributed tracing data collection from an OpenShift Container Platform cluster are as follows:

  1. Shut down all distributed tracing data collection pods.

  2. Remove any OpenTelemetryCollector instances.

  3. Remove the Red Hat OpenShift distributed tracing data collection Operator.

Removing a distributed tracing data collection instance by using the web console

You can remove a distributed tracing data collection instance in the Administrator view of the web console.

Prerequisites
  • You are logged in to the web console as a cluster administrator with the cluster-admin role.

  • For Red Hat OpenShift Dedicated, you must be logged in using an account with the dedicated-admin role.

Procedure
  1. Go to OperatorsInstalled OperatorsRed Hat OpenShift distributed tracing data collection OperatorOpenTelemetryInstrumentation or OpenTelemetryCollector.

  2. To remove the relevant instance, select kebabDelete …​ → Delete.

  3. Optional: Remove the Red Hat OpenShift distributed tracing data collection Operator.

Removing a distributed tracing data collection instance by using the CLI

You can remove a distributed tracing data collection instance on the command line.

Prerequisites
  • An active OpenShift CLI (oc) session by a cluster administrator with the cluster-admin role.

    • Ensure that your OpenShift CLI (oc) version is up to date and matches your OpenShift Container Platform version.

    • Run oc login:

      $ oc login --username=<your_username>
Procedure
  1. Get the name of the distributed tracing data collection instance by running the following command:

    $ oc get deployments -n <project_of_opentelemetry_instance>
  2. Remove the distributed tracing data collection instance by running the following command:

    $ oc delete opentelemetrycollectors <opentelemetry_instance_name> -n <project_of_opentelemetry_instance>
  3. Optional: Remove the Red Hat OpenShift distributed tracing data collection Operator.

Verification
  • To verify successful removal of the distributed tracing data collection instance, run oc get deployments again:

    $ oc get deployments -n <project_of_opentelemetry_instance>