Red Hat Camel K is no longer supported.
As of June 30, 2025, Red Hat build of Camel K has reached End of Life. The suggested replacements is Red Hat build of Apache Camel. For details about moving, see the Camel K to Camel Quarkus migration guide.3.2. 启用 Camel K Operator 监控
OpenShift 4.3 或更高版本包括已作为 OpenShift Monitoring 的一部分部署的嵌入式 Prometheus Operator。本节介绍如何在 OpenShift Monitoring 中启用对您自己的应用程序服务的监控。
先决条件
- 您必须具有安装 Camel K Operator 的 OpenShift 集群的集群管理员访问权限。请参阅安装 Camel K。
- 您必须在 OpenShift 中启用对您自己的服务的监控。请参阅 在 OpenShift 中启用用户工作负载监控。
流程
创建一个以 operator 指标端点为目标的
PodMonitor
资源,以便 Prometheus 服务器可以提取 Operator 公开的指标。operator-pod-monitor.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 创建
PodMonitor
资源。oc apply -f operator-pod-monitor.yaml
oc apply -f operator-pod-monitor.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
其它资源
- 有关发现机制和 Operator 资源之间的关系的更多信息,请参阅 Prometheus Operator 入门指南。
-
如果没有发现 Operator 指标,您可以在 故障排除 ServiceMonitor 中的内容中找到更多信息,这也适用于
PodMonitor
资源故障排除。