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

The following table describes the CloudMonitor resource statistics operations available for use in Message Queue for Apache Kafka.

Operation Description
DescribeProjectMeta Queries the information about a connected cloud service, including its description, namespace, and tags.
Note For more information about Message Queue for Apache Kafka, see Information about Message Queue for Apache Kafka resources.
DescribeMetricMetaList Queries the descriptions of metrics that are supported by CloudMonitor.
Note For more information about the metrics for Message Queue for Apache Kafka, see Metrics for Message Queue for Apache Kafka.
DescribeMetricLast Queries the latest monitoring data of a specified metric.
DescribeMetricList Queries the monitoring data of a metric for a cloud service in a specified period.
DescribeMetricTop Queries the sorted monitoring data of a metric for a cloud service in a specified period.
DescribeMetricData Queries the monitoring data of a metric for a cloud service in a specified period. Data aggregation is supported by this operation.

Grant permissions to RAM users

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

Call API operations

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

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