Alibaba Cloud 모니터링 RocketMQ (공개 미리 보기)
Instana 호스트 에이전트를 설치하면 Alibaba Cloud RocketMQ 센서가 자동으로 설치됩니다. Instana UI에서 Alibaba Cloud RocketMQ 와 관련된 메트릭을 확인하려면, Alibaba Cloud RocketMQ 센서를 구성해야 합니다. Instana 호스트 에이전트는 이제 RocketMQ 4.x 만 지원합니다.
구성
AliCloud RocketMQ 센서를 사용하지 않도록 설정할 수 있으며 태그 및 자원 그룹별로 필터링할 수 있습니다. 다음을 수행하여 <agentinstall_dir>/etc/instana/configuration.yaml 의 에이전트 구성을 통해 AliCloud RocketMQ 센서를 구성할 수 있습니다.
AliCloud 센서를 사용으로 설정하고 에이전트의 configuration.yaml 파일에서 AccessKey 쌍을 설정하십시오.
com.instana.plugin.alicloud: # Valid values: true, false enabled: true # enabled (true) by default # Alibaba Cloud AccessKey ID is used to verify the identity of the user accessKeyId: '<YOUR_ALICLOUD_ACCESSKEY_ID>' # Alibaba Cloud AccessKey secret is used to encrypt and verify the signature string accessKeySecret: '<YOUR_ALICLOUD_ACCESSKEY_SECRET>'에이전트의 configuration.yaml 파일에서 AliCloud RocketMQ 센서를 사용으로 설정하십시오.
com.instana.plugin.alicloud.rocketmq: # Valid values: true, false enabled: true # enabled (true) by default # Alibaba Cloud AccessKey ID is used to verify the identity of the user accessKeyId: '<YOUR_ALICLOUD_ROCKETMQ_ACCESS_KEY_ID>' # Alibaba Cloud AccessKey secret is used to encrypt and verify the signature string accessKeySecret: '<YOUR_ALICLOUD_ROCKETMQ_ACCESS_KEY_SECRET>' # in seconds poll_rate: 60
참고: 섹션의 ` AccessKey ` 쌍은 기본적으로 각 서비스에 적용되므로, 특정 서비스에 대해 개별적인 ` AccessKey
com.instana.plugin.alicloud ` 설정이 필요한 경우가 아니라면 각 서비스 섹션에 ` AccessKey ` 쌍을 명시할 필요가 없습니다. 서비스 섹션에서 ` AccessKey ` 쌍을 설정하면 해당 서비스에 com.instana.plugin.alicloud 대해 ` AccessKey `의 설정이 무시됩니다.메트릭 보기
메트릭을 보려면 다음 단계를 완료하십시오.
- Instana UI의 사이드바에서 ‘인프라’를 선택합니다.
- 모니터되는 특정 호스트를 클릭하십시오.
그런 다음 수집된 모든 메트릭 및 모니터된 프로세스가 포함된 호스트 대시보드를 볼 수 있습니다.
구성 데이터
| RocketMQ 세부사항 | 설명 |
|---|---|
| 지역 | RocketMQ 인스턴스가 있는 지역 |
| 인스턴스 ID | RocketMQ 인스턴스 ID |
| 인스턴스 이름 | RocketMQ 인스턴스의 이름 |
| 인스턴스 상태 | RocketMQ 인스턴스 실행 상태 |
| 인스턴스 유형 | RocketMQ 인스턴스의 유형 |
성능 매트릭
인스턴스 메트릭
| 인스턴스 메트릭 | 설명 |
|---|---|
| MessageCountPerInstanceAll | 인스턴스당 메시지 수 |
| MessageCountPerInstanceAllTps | 인스턴스당 메시지 Tps |
| ReceiveMessageCountPerInstance | 인스턴스당 메시지 수신 |
| ReceiveMessageCountPerInstanceTps | 인스턴스당 메시지 Tps 수신 |
| ReceiveMessageCountPerInstance1Hour | 1시간내에 인스턴스당 메시지 수신 |
| ReceiveMessageCountPerInstanceTps1Hour | 1시간동안 인스턴스당 메시지 Tps 수신 |
| SendMessageCountPerInstance | 인스턴스당 메시지 보내기 |
| SendMessageCountPerInstanceTps | 인스턴스당 메시지 전송 Tps |
| SendMessageCountPerInstance1Hour | 인스턴스당 메시지 보내기 |
| SendMessageCountPerInstanceTps1Hour | 1시간동안 인스턴스당 메시지 전송 Tps |
| MessageRetentionPeriod | 메시지 보존 기간 |
그룹 지표
| 그룹 메트릭 | 설명 |
|---|---|
| ReceiveMessageCountPerGid1Hour | 1시간내에 그룹당 메시지 수신 |
| ReceiveMessageCountPerGidTps1Hour | 1시간이내에 그룹당 메시지 Tps 수신 |
| SendMessageCountPerGid1Hour | 1시간내에 그룹당 메시지 보내기 |
| SendMessageCountPerGidTps1Hour | 1시간내에 그룹당 메시지 전송 Tps |
| ReceiveMessageCountPerGid | 그룹당 메시지 수신 |
| ReceiveMessageCountPerGidTps | 그룹당 수신 메시지 Tps |
| SendMessageCountPerGid | 그룹당 메시지 보내기 |
| ConsumerLag | 이용자 지연 시간 |
| SendDLQMessageCountPerGid | 그룹당 DLQ 메시지 송신 |
주제별 그룹 지표
| 주제별 그룹 메트릭 | 설명 |
|---|---|
| SendMessageCountPerGidTopic | 그룹 및 토픽당 메시지 전송 |
| ReceiveMessageCountPerGidTopic | 1시간이내에 그룹당 메시지 Tps 수신 |
| ConsumerLagPerGidTopic | 그룹 및 주제별 이용자 지연 |
| SendDLQMessageCountPerGidTopic | 그룹 및 토픽당 DLQ 메시지 송신 |
토픽 메트릭
| 주제별 그룹 메트릭 | 설명 |
|---|---|
| SendMessageCountPerTopic1Hour | 1시간내에 주제당 메시지 보내기 |
| ReceiveMessageCountPerTopic1Hour | 1시간내에 주제당 메시지 수신 |
| SendMessageCountPerTopicTps1Hour | 1시간동안 토픽당 메시지 전송 Tps |
| ReceiveMessageCountPerTopicTps1Hour | 1시간동안 주제당 메시지 Tps 수신 |
| SendMessageCountPerTopic | 토픽당 메시지 전송 |
| ReceiveMessageCountPerTopic | 주제당 메시지 수신 |
| SendMessageCountPerTopicTps | 토픽당 메시지 전송 Tps |
| ReceiveMessageCountPerTopicTps | 1시간동안 주제당 메시지 Tps 수신 |
| ReceiveMessageCountPerTopicTps1Hour | 주제별 메시지 Tps 수신 |
추적
RocketMQ 추적 기능을 사용하는 자바 기반 애플리케이션의 경우, Java Trace SDK를 참조하여 추적을 구성하고 활성화하십시오. 다음 구성 예제를 참조하십시오.
com.instana.plugin.javatrace:
instrumentation:
sdk:
targets:
- match:
type: interface
name: org.apache.rocketmq.client.producer.MQProducer
method: send
span:
name: rmqSend
type: EXIT
stackDepth: 2
tags:
- kind: constant
name: endpoint
value: rmqProducer
- kind: constant
name: service
value: rocketMQ
- kind: argument
name: msg
index: 0
- match:
type: interface
name: org.apache.rocketmq.client.consumer.listener.MessageListenerConcurrently
method: consumeMessage
span:
name: rmqReceive
type: INTERMEDIATE
stackDepth: 2
tags:
- kind: constant
name: endpoint
value: rmqConsumer
- kind: constant
name: service
value: rocketMQ
- kind: argument
name: msgs
index: 0