Message Queue for Apache Kafka allows you to monitor the status of your resources in real time. For example, you can monitor the status of instances, topics, and consumer groups. You can also configure alert rules for metrics. If a metric value exceeds the specified alert threshold, CloudMonitor sends a notification to you by using a voice message, text message, email, or DingTalk chatbot message. This allows you to troubleshoot issues at the earliest opportunity.

Metrics

Note
  • The data of each metric is aggregated every minute. This means that the number of bytes per second is calculated every minute. The data aggregated within 1 minute can be considered as the average value of this minute.
  • The data latency of each metric is 1 minute.

The following information lists the metrics for different resource types:

  • Instance metrics
    • InstanceMessageInput(bytes/s)
    • InstanceMessageOutput(bytes/s)
    • InstanceDiskUtilization(%)
    Note InstanceDiskUtilization(%) indicates the maximum disk usage of each node of the instance.
  • Topic metrics
    • TopicMessageInput(bytes/s)
    • TopicMessageOutput(bytes/s)
  • Consumer group metrics
    • MessageAccumulation(unit)

View monitoring data

To view the monitoring data, perform the following steps:

  1. Log on to the Message Queue for Apache Kafka console.
  2. In the Resource Distribution section of the Overview page, select the region where your instance resides.
  3. On the Instances page, click the name of the instance that you want to manage.
  4. In the left-side navigation pane, click Monitoring and Alerting.
  5. On the Monitoring and Alerting page, click the tab corresponding to a specified resource type, find the resource whose monitoring data you want to view, and then click View Cloud Monitor Metrics in the Actions column. In the dialog box that appears, specify the time range to query and view the monitoring data.
    Cloud Monitor Metrics for Instance

Configure an alert rule

To configure an alert rule, perform the following steps:

  1. Log on to the Message Queue for Apache Kafka console.
  2. In the Resource Distribution section of the Overview page, select the region where your instance resides.
  3. On the Instances page, click the name of the instance that you want to manage.
  4. In the left-side navigation pane, click Monitoring and Alerting.
  5. On the Monitoring and Alerting page, click the tab corresponding to a specified resource type and configure an alert rule.
    • Click the Instance tab. On the tab that appears, click Create Alert Rule. On the page that appears, configure the alert rule and notification method. Then, click Confirm. If you need to modify the created alert rule, perform the following steps:
      1. On the Instance tab, find the instance whose alert rule you want to modify and click Alert Rule in the Actions column.
      2. In the Alert Rules Associated with Instance panel, find the alert rule that you want to modify and click Edit Rule in the Actions column.
    • Click the Topic tab. On the tab that appears, click Create Alert Rule. On the page that appears, configure the alert rule and notification method. Then, click Confirm. If you need to modify the created alert rule, perform the following steps:
      1. On the Topic tab, find the topic whose alert rule you want to modify and click Alert Rule in the Actions column.
      2. In the Alert Rules Associated with Topic panel, find the alert rule that you want to modify and click Edit Rule in the Actions column.
    • Click the Group tab. On the tab that appears, click Create Alert Rule. On the page that appears, configure the alert rule and notification method. Then, click Confirm. If you need to modify the created alert rule, perform the following steps:
      1. On the Group tab, find the consumer group whose alert rule you want to modify and click Alert Rule in the Actions column.
      2. In the Alert Rules Associated with Group panel, find the alert rule that you want to modify and click Edit Rule in the Actions column.

View alert information

To view alert information, perform the following steps:

  1. Log on to the Message Queue for Apache Kafka console.
  2. In the Resource Distribution section of the Overview page, select the region where your instance resides.
  3. On the Instances page, click the name of the instance that you want to manage.
  4. In the left-side navigation pane, click Monitoring and Alerting.
  5. On the Monitoring and Alerting page, click the tab where you want to view alert information.
    • View the alert information about an instance
      1. Click the Instance tab. On the tab that appears, find the instance whose alert information you want to view and click Alert Rule in the Actions column.
      2. In the Alert Rules Associated with Instance panel, find the alert rule whose details you want to view and click Details in the Actions column. You can view, enable, disable, or delete the alert rule, or view the alert history.
    • View the alert information about a topic
      1. Click the Topic tab. On the tab that appears, find the topic whose alert information you want to view and click Alert Rule in the Actions column.
      2. In the Alert Rules Associated with Topic panel, find the alert rule whose details you want to view and click Details in the Actions column. You can view, enable, disable, or delete the alert rule, or view the alert history.
    • View the alert information about a consumer group
      1. Click the Group tab. On the tab that appears, find the consumer group whose alert information you want to view and click Alert Rule in the Actions column.
      2. In the Alert Rules Associated with Group panel, find the alert rule whose details you want to view and click Details in the Actions column. You can view, enable, disable, or delete the alert rule, or view the alert history.