2장. Camel K 통합 모니터링
Red Hat 통합 - Camel K 모니터링은 OpenShift 모니터링 시스템을 기반으로 합니다. 이 장에서는 런타임 시 Red Hat Integration - Camel K 통합 모니터링에 사용 가능한 옵션을 사용하는 방법을 설명합니다. 이미 OpenShift 모니터링의 일부로 배포된 Prometheus Operator를 사용하여 자체 애플리케이션을 모니터링할 수 있습니다.
2.1. OpenShift에서 사용자 워크로드 모니터링 활성화
OpenShift 4.3 이상에는 OpenShift 모니터링의 일부로 이미 배포된 내장 Prometheus Operator가 포함되어 있습니다. 이 섹션에서는 OpenShift 모니터링에서 자체 애플리케이션 서비스 모니터링을 활성화하는 방법을 설명합니다. 이 옵션을 사용하면 별도의 Prometheus 인스턴스를 설치 및 관리하는 추가 오버헤드가 발생하지 않습니다.
사전 요구 사항
- Camel K Operator가 설치된 OpenShift 클러스터에 대한 클러스터 관리자 액세스 권한이 있어야 합니다. Camel K 설치를 참조하십시오.
절차
다음 명령을 입력하여
openshift-monitoring 프로젝트에cluster-monitoring-configConfigMap 오브젝트가 있는지 확인합니다.$ oc -n openshift-monitoring get configmap cluster-monitoring-config
cluster-monitoring-configConfigMap이 아직 없는 경우 해당 ConfigMap을 생성합니다.$ oc -n openshift-monitoring create configmap cluster-monitoring-config
cluster-monitoring-configConfigMap을 편집합니다.$ oc -n openshift-monitoring edit configmap cluster-monitoring-config
data:config.yaml:에서enableUserWorkload를true로 설정합니다.apiVersion: v1 kind: ConfigMap metadata: name: cluster-monitoring-config namespace: openshift-monitoring data: config.yaml: | enableUserWorkload: true
추가 리소스