Streaming with Apache Kafka Metrics

Using metrics, you can monitor Kafka clusters and endpoints in OCI Streaming with Apache Kafka.

You can view default metric charts from the Service Metrics page that use predefined service queries for brokers in a Kafka cluster.

You can also use the OCI Monitoring service to create custom queries and alarms to notify you when these metrics meet alarm-specified triggers.

You must also monitor client metrics.

Available Metrics

A namespace is a container for metrics. The namespace for OCI Streaming with Apache Kafka is oci_kafka.

Streaming with Apache Kafka metrics include the following dimensions:

  • brokerId: The ID of the Kafka cluster broker.
  • resourceId: The OCID of the Kafka cluster.
  • resourceName: The name of the Kafka cluster.
Metric Metric Display Name Unit Description Dimensions
BrokerCPUUsage CPU Usage for Kafka Brokers Percentage Total CPU usage for each broker.

brokerId

resourceId

resourceName

BrokerAvailableDiskSpace Available Disk Space for Kafka Brokers Percentage Percentage of available disk space in each broker.

brokerId

resourceId

resourceName

BrokerMemoryUsed Memory Used by Kafka Broker Percentage Total heap + non-heap memory usage for each broker.

brokerId

resourceId

resourceName

BrokerActiveControllerCount Active Controller Count Count Number of active controllers for each broker. Should always be 1.

brokerId

resourceId

resourceName

BrokerUnderReplicatedPartitions Under Replicated Partitions Count Shows number of partitions that are under replicated in a broker.

brokerId

resourceId

resourceName

BrokerOfflinePartitionsCount Offline Partitions Count Count Number of partitions assigned to a broker that are currently offline.

brokerId

resourceId

resourceName

Recommendations

View the recommendations for the available metrics to ensure healthy operation of the Kafka clusters.

You must create alarms to monitor the values of these metrics.

Metric Alert Threshold Recommendation
BrokerCPUUsage

> 80% over 5 minutes

BrokerAvailableDiskSpace

< 20 GB

BrokerMemoryUsed

> 80%

BrokerActiveControllerCount

1

BrokerUnderReplicatedPartitions

> 0

BrokerOfflinePartitionsCount

> 0