2.50. MicroProfile 지표


Camel 경로에서 메트릭을 노출합니다.

2.50.1. 내부 내용

사용 및 설정 세부 사항은 위의 링크를 참조하십시오.

2.50.2. Maven 조정

code.quarkus.redhat.com에서 이 확장 기능을 사용하여 새 프로젝트를 생성합니다.

또는 기존 프로젝트에 좌표를 추가합니다.

<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-microprofile-metrics</artifactId>
</dependency>
Copy to Clipboard Toggle word wrap

2.50.3. 사용법

microprofile-metrics 구성 요소는 Camel 애플리케이션 지표 집합을 자동으로 노출합니다. 다음 중 일부는 다음과 같습니다.

2.50.3.1. Camel 컨텍스트 지표

Expand
메트릭 이름유형

camel.context.status

ServiceStatus >-< ordinal에 표시된 Camel 컨텍스트의 상태

게이지

camel.context.uptime

Camel 컨텍스트 가동 시간(밀리초)

게이지

camel.context.exchanges.completed.total

완료된 총 교환 수

카운터

camel.context.exchanges.failed.total

실패한 총 전환 수

카운터

camel.context.exchanges.inflight.total

총 인플라이언스 트래픽 수

게이지

camel.context.exchanges.total

모든 교환의 총 수

카운터

camel.context.externalRedeliveries.total

모든 외부 재전송의 총 수

카운터

camel.context.failuresHandled.total

처리된 모든 실패의 총 수

카운터

2.50.3.2. Camel 경로 지표

Expand
메트릭 이름유형

camel.route.count

경로 수

게이지

camel.route.running.count

실행 중인 경로 수

게이지

camel.route.exchanges.completed.total

경로의 총 교환 수

카운터

camel.route.exchanges.failed.total

경로에 대한 실패한 총 교환 수

카운터

camel.route.exchanges.inflight.total

경로에 대한 총 인플라이언스 수

게이지

camel.route.exchanges.total

경로에 대한 모든 교환의 총 수

카운터

camel.route.externalRedeliveries.total

경로에 대한 모든 외부 전송의 총 수

카운터

camel.route.failuresHandled.total

경로에 대해 처리된 총 실패 수

카운터

모든 지표는 Camel Context의 이름과 해당하는 경로의 ID로 태그됩니다.

Camel 경로에서 사용자 지정 메트릭을 생성할 수도 있습니다. 자세한 내용은 microprofile-metrics 구성 요소 설명서를 참조하십시오.

메트릭은 애플리케이션 지표로 Quarkus에 노출되며 http://localhost:8080/q/metrics/application 에서 검색할 수 있습니다.

2.50.4. 추가 Camel Quarkus 구성

Expand
구성 속성유형Default

lock quarkus.camel.metrics.enable-route-policy

경로 처리 시간에 메트릭을 캡처하기 위해 MicroProfileMetricsRoutePolicyFactory를 활성화할지 여부를 설정합니다.

boolean

true

lock quarkus.camel.metrics.enable-message-history

개별 경로 노드 처리 시간에 메트릭을 캡처하기 위해 MicroProfileMetricsMessageHistoryFactory를 활성화할지 여부를 설정합니다. 구성된 경로 노드 수에 따라 많은 양의 메트릭을 생성할 수 있습니다. 따라서 이 옵션은 기본적으로 비활성화되어 있습니다.

boolean

false

lock quarkus.camel.metrics.enable-exchange-event-notifier

교환 처리 시간에 메트릭을 캡처하기 위해 MicroProfileMetricsExchangeEventNotifier를 활성화할지 여부를 설정합니다.

boolean

true

lock quarkus.camel.metrics.enable-route-event-notifier

총 경로 수 및 실행 중인 총 경로 수에 대한 메트릭 캡처에 MicroProfileMetricsRouteEventNotifier를 활성화할지 여부를 설정합니다.

boolean

true

lock quarkus.camel.camel.metrics.enable-camel-context-event-notifier

상태 및 가동 시간과 같은 CamelContext에 대한 메트릭 캡처를 위해 MicroProfileMetricsCamelContextEventNotifier를 활성화할지 여부를 설정합니다.

boolean

true

lock 구성 속성은 빌드 시 수정되었습니다. 다른 모든 구성 속성은 런타임에 오버라이브할 수 있습니다.

맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat