删除红帽构建的 OpenTelemetry


Red Hat build of OpenTelemetry 3.8

卸载 Collector 实例和 OpenTelemetry Operator

Red Hat OpenShift Documentation Team

摘要

本文档论述了如何从 OpenShift 集群中删除 Red Hat build of OpenTelemetry。了解删除的正确序列:关闭 OpenTelemetry pod、删除 OpenTelemetryCollector 和 OpenTelemetryInstrumentation 实例,以及卸载 OpenTelemetry Operator。包含使用 Web 控制台管理员视图和命令行界面删除实例的流程,验证步骤以确认成功删除。

第 1 章 删除

从 OpenShift Container Platform 集群中删除红帽构建的 OpenTelemetry 步骤如下:

  1. 关闭红帽构建的 OpenTelemetry pod。
  2. 删除任何 OpenTelemetryCollector 实例。
  3. 删除 OpenTelemetry Operator 的红帽构建。

您可以在 web 控制台的 Administrator 视图中删除 OpenTelemetry Collector 实例。

先决条件

  • 以集群管理员身份使用 cluster-admin 角色登录到 web 控制台。
  • 对于 Red Hat OpenShift Dedicated,您必须使用具有 dedicated-admin 角色的帐户登录。

流程

  1. 进入 EcosystemInstalled Operators红帽构建的 OpenTelemetry Operator → OpenTelemetry InstrumentationOpenTelemetryCollector
  2. 要删除相关实例,请选择 kebabDelete …​ → Delete
  3. 可选:删除红帽构建的 OpenTelemetry Operator。

1.2. 使用 CLI 删除 OpenTelemetry Collector 实例

您可以在命令行中删除 OpenTelemetry Collector 实例。

先决条件

  • 集群管理员具有 cluster-admin 角色的活跃 OpenShift CLI (oc) 会话。

    提示
    • 确保您的 OpenShift CLI (oc) 版本为最新版本,并与您的 OpenShift Container Platform 版本匹配。
    • 运行 oc login:

      $ oc login --username=<your_username>
      Copy to Clipboard Toggle word wrap

流程

  1. 运行以下命令,获取 OpenTelemetry Collector 实例的名称:

    $ oc get deployments -n <project_of_opentelemetry_instance>
    Copy to Clipboard Toggle word wrap
  2. 运行以下命令来删除 OpenTelemetry Collector 实例:

    $ oc delete opentelemetrycollectors <opentelemetry_instance_name> -n <project_of_opentelemetry_instance>
    Copy to Clipboard Toggle word wrap
  3. 可选:删除红帽构建的 OpenTelemetry Operator。

验证

  • 要验证成功删除 OpenTelemetry Collector 实例,请再次运行 oc get deployments

    $ oc get deployments -n <project_of_opentelemetry_instance>
    Copy to Clipboard Toggle word wrap

法律通告

Copyright © 2025 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部