Skip to content

Alibaba Cloud KafKa

Alibaba Cloud KafKa includes instance disk usage, instance and topic message production volume, message production frequency, message consumption volume, message consumption frequency, etc. These metrics reflect the reliability of Kafka in handling large-scale message transmission and real-time data streams.

Configuration

Install Func

It is recommended to enable Guance integration - extension - DataFlux Func (Automata): all prerequisites are automatically installed. Please continue with the script installation.

If you deploy Func on your own, refer to Self-deployed Func

Installation Script

Note: Please prepare an Alibaba Cloud AK that meets the requirements in advance (for simplicity, you can directly grant global read-only permissions ReadOnlyAccess)

To synchronize monitoring data for the community edition of Alibaba Cloud KafKa, we install the corresponding collection script: Guance Integration (Alibaba Cloud- KafKa Collection) (ID: startup__guance_aliyun_Kafka)

After clicking 【Install】, enter the corresponding parameters: Alibaba Cloud AK, Alibaba Cloud account name.

Click 【Deploy Startup Script】, and the system will automatically create a Startup script set and automatically configure the corresponding startup script.

In addition, you can see the corresponding automatic trigger configuration in 「Manage / Automatic Trigger Configuration」. Click 【Execute】 to run it immediately without waiting for the scheduled time. After a short wait, you can view the execution task records and corresponding logs.

We default collect some configurations; for details, see the Metrics section.

Configure custom cloud object metrics

Verification

  1. In 「Manage / Automatic Trigger Configuration」, confirm whether the corresponding task has the corresponding automatic trigger configuration, and at the same time, you can check the corresponding task records and logs to check for any abnormalities.
  2. In the Guance platform, under 「Infrastructure / Custom」, check if there is asset information.
  3. In the Guance platform, under 「Metrics」, check if there is corresponding monitoring data.

Metrics

After configuring Alibaba Cloud - Cloud Monitoring, the default metric set is as follows. You can collect more metrics through configuration. Alibaba Cloud Cloud Monitoring Metric Details

Metric Id Metric Name Dimensions Statistics Unit
instance_disk_capacity_Maximum V2 Instance Disk Usage userId,instanceId Maximum %
instance_message_input Instance Message Production Volume userId,instanceId Value bytes/s
instance_message_num_input Instance Message Production Count userId,instanceId Value countSecond
instance_message_output Instance Message Consumption Volume userId,instanceId Value bytes/s
instance_reqs_input Instance Message Send Count userId,instanceId Value countSecond
instance_reqs_output Instance Message Consumption Count userId,instanceId Value countSecond
topic_message_input Topic Message Production Volume userId,instanceId Value bytes/s
topic_message_num_input Topic Message Production Count userId,instanceId Value countSecond
topic_message_output Topic Message Consumption Volume userId,instanceId Value bytes/s
topic_reqs_input Topic Message Send Count userId,instanceId Value countSecond
topic_reqs_output Topic Message Consumption Count userId,instanceId Value countSecond

Objects

The object data structure collected for Alibaba Cloud KafKa can be viewed from 「Infrastructure - Custom」.

{
  "measurement": "aliyun_kafka",
  "tags": {
    "InstanceId"        : "alikafka_post-cn-zsk3cluq100d",
    "InstanceName"      : "alikafka_post-cn-zsk3cluq100d",
    "RegionId"          : "cn-hangzhou",
    "ResourceGroupId"   : "rg-acfmv3ro3xnfwaa",
    "SpecType"          : "normal",
    "cloud_provider"    : "aliyun",
    "name"              : "alikafka_post-cn-zsk3cluq100d"
  },
  "fields": {
    "AllConfig"         : "{}",
    "CreateTime"        : 1692080715000,
    "DeployType"        : 5,
    "EipMax"            : 0,
    "ExpiredTime"       : 2007699914000,
    "IoMax"             : 20,
    "IoMaxSpec"         : "alikafka.hw.2xlarge",
    "PaidType"          : 1,
    "ServiceStatus"     : 0,
    "TopicNumLimit"     : 1000,
    "UsedGroupCount"    : 0,
    "UsedTopicCount"    : 0,
  }
}

Feedback

Is this page helpful? ×