第 2 章 监控 Camel K 集成


Red Hat Integration - Camel K monitoring 基于 OpenShift 监控系统。本章论述了如何使用可用选项在运行时监控 Red Hat Integration - Camel K 集成。您可以使用已部署为 OpenShift Monitoring 的一部分的 Prometheus Operator 来监控您自己的应用程序。

2.1. 在 OpenShift 中启用用户工作负载监控

OpenShift 4.3 或更高版本包括已作为 OpenShift Monitoring 的一部分部署的嵌入式 Prometheus Operator。本节介绍如何在 OpenShift Monitoring 中启用对您自己的应用服务的监控。这个选项可避免安装和管理独立 Prometheus 实例的额外开销。

先决条件

  • 您必须具有安装 Camel K Operator 的 OpenShift 集群的集群管理员访问权限。请参阅安装 Camel K

流程

  1. 输入以下命令检查 openshift-monitoring 项目中是否存在 cluster-monitoring-config ConfigMap 对象:

    $ oc -n openshift-monitoring get configmap cluster-monitoring-config
  2. 如果不存在,请创建 cluster-monitoring-config ConfigMap:

    $ oc -n openshift-monitoring create configmap cluster-monitoring-config
  3. 编辑 cluster-monitoring-config ConfigMap:

    $ oc -n openshift-monitoring edit configmap cluster-monitoring-config
  4. data:config.yaml: 下,将 enableUserWorkload 设置为 true

    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: cluster-monitoring-config
      namespace: openshift-monitoring
    data:
      config.yaml: |
        enableUserWorkload: true
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat, Inc.