You can call Cloud Monitor resource statistics operations to query the usage of Message Queue for Apache Kafka instances, consumer groups, and topics.
List of operations by function
The following table describes the Cloud Monitor resource statistics operations available for use in Message Queue for Apache Kafka.
API | Description |
---|---|
DescribeProjectMeta | Queries information about a connected cloud service, including its description, namespace,
and tags.
Note For more information about Message Queue for Apache Kafka , see Message Queue for Apache Kafka information.
|
DescribeMetricMetaList | Queries the descriptions of time series metrics that are supported in Cloud Monitor.
Note For information about Message Queue for Apache Kafka metrics, see .
|
DescribeMetricLast | Queries the latest monitoring data of a specified metric. |
DescribeMetricList | Queries the monitoring data on a time series metric of a cloud service in a specified period of time. |
DescribeMetricTop | Queries the sorted monitoring data on a time series metric of a cloud service in a specified period of time. |
DescribeMetricData | Queries the monitoring data on a time series metric of a cloud service in a specified period of time. |
RAM user authorization
For more information about how to grant Cloud Monitor permissions to Resource Access Management (RAM) users, see Control permissions of RAM users.
Make API requests
For more information about how to call Cloud Monitor resource statistics operations, see Request method.
Message Queue for Apache Kafka information
{
"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 of Message Queue for Apache Kafka
The following table lists Message Queue for Apache Kafka metrics provided by Cloud Monitor resource statistics.
Metric | Description | Unit | Dimensions |
---|---|---|---|
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 in a consumer group. | Count |
|
message_accumulation_onetopic | The number of unconsumed messages in a single topic for a consumer group. | Count |
|
topic_message_input | The message production traffic of a topic. | bytes/s |
|
topic_message_output | The message consumption traffic of a topic. | bytes/s |
|