You can call CloudMonitor resource statistics operations to query the usage of Message Queue for Apache Kafka instances, groups, and topics.

List of operations by function

For more information about the CloudMonitor resource statistics operations available for use in Message Queue for Apache Kafka, see List of API operations by function.

Grant permissions to RAM users

For more information about how to grant permissions on CloudMonitor resource statistics operations to RAM users, see RAM authorization.

Call API operations

For more information about how to call CloudMonitor resource statistics operations, see Request methods.

Information about Message Queue for Apache Kafka resources

CloudMonitor resource statistics provide information about Message Queue for Apache Kafka resources in the following format:
{
    "PageSize": 30,
    "RequestId": "5AD2B98E-0E93-46FB-9790-185F338254FF",
    "PageNumber": 1,
    "Total": 1,
    "Resources": {
        "Resource": [
            {
                "Description": "Message Queue for Apache Kafka",
                "Labels": "[{\"name\":\"product\",\"value\":\"Kafka\"},{\"name\":\"productCategory\",\"value\":\"kafka\"},{\"name\":\"groupFlag\",\"value\":\"false\"},{\"name\":\"cnName\",\"value\":\"Message Queue for Apache Kafka\"},{\"name\":\"enName\",\"value\":\"MQ for Kafka\"}]",
                "Namespace": "acs_kafka"
            }
        ]
    },
    "Code": 200,
    "Success": true
}


                

Metrics for Message Queue for Apache Kafka

The following table describes the metrics for Message Queue for Apache Kafka provided by CloudMonitor resource statistics.

Metric Description Unit Dimension
instance_disk_capacity The disk usage of a Message Queue for Apache Kafka instance. % instanceId
instance_message_input The message production traffic of a Message Queue for Apache Kafka instance. bytes/s instanceId
instance_message_output The message consumption traffic of a Message Queue for Apache Kafka instance. bytes/s instanceId
message_accumulation The total number of unconsumed messages for a group. N/A
  • instanceId
  • Group
message_accumulation_onetopic The number of unconsumed messages in a topic for a group. N/A
  • instanceId
  • Group
  • topic
topic_message_input The message production traffic of a topic. bytes/s
  • instanceId
  • topic
topic_message_output The message consumption traffic of a topic. bytes/s
  • instanceId
  • topic