Kafka Server
Kafka Server support and JMX-based metric collection in HEAL.
Supported Components and Versions#
| LAYER | COMPONENT | VERSION |
|---|---|---|
| Queue | KafkaServer | 2.2.0 |
Monitoring Strategies for Components#
Metrics’ collection is done using JMX. Once JMX is enabled, HEAL’s Component Agent will source metrics from Kafka via the JMX port and push the metrics to HEAL’s Ingestion API layer.
KPIs collected#
| Component Name | kpi_name | kpi_identifier | KpiDescription | Units |
|---|---|---|---|---|
| KafkaServer | Under Replicated Partitions | kafka_UnderReplicatedPartitions##@@##Value | Number of unreplicated partitions | Count |
| KafkaServer | Isr Shrinks Per Sec | kafka_IsrShrinksPerSec##@@##OneMinuteRate | Rate at which the pool of in-sync replicas (ISRs) shrinks | Seconds |
| KafkaServer | Isr Expands Per Sec | kafka_IsrExpandsPerSec##@@##OneMinuteRate | Rate at which the pool of in-sync replicas (ISRs) expands | Seconds |
| KafkaServer | Active Controller Count | kafka_ActiveControllerCount##@@##Value | the number of active controllers currently running. | Count |
| KafkaServer | Offline Partitions Count | kafka_OfflinePartitionsCount##@@##Value | Number of partitions that are offline in a database table. | Count |
| KafkaServer | Leader Election Rate And Time Ms | kafka_LeaderElectionRateAndTimeMs##@@##OneMinuteRate | Leader election rate and latency | Seconds |
| KafkaServer | Unclean Leader Elections Per Sec | kafka_UncleanLeaderElectionsPerSec##@@##OneMinuteRate | Number of unclean elections per second | Seconds |
| KafkaServer | Total Time Ms For Produce | kafka_TotalTimeMsForProduce##@@##Count | Total time (in ms) to serve the specified request | Milliseconds |
| KafkaServer | Total Time Ms For Fetch Consumer | kafka_TotalTimeMsForFetchConsumer##@@##Count | Total time (in ms) to serve the specified request | Milliseconds |
| KafkaServer | Total Time Ms For Fetch Follower | kafka_TotalTimeMsForFetchFollower##@@##Count | Total time (in ms) to serve the specified request | Milliseconds |
| KafkaServer | Purgatory Size For Produce Delayed Operation | kafka_PurgatorySizeForProduceDelayedOperation##@@##Value | Number of requests waiting in producer purgatory | Count |
| KafkaServer | Purgatory Size For Fetch Delayed Operation | kafka_PurgatorySizeForFetchDelayedOperation##@@##Value | Number of requests waiting in fetch purgatory | Count |
| KafkaServer | Bytes In Per Sec | kafka_BytesInPerSec##@@##OneMinuteRate | The average number of bytes received per second over a period of time. | Seconds |
| KafkaServer | Bytes Out Per Sec | kafka_BytesOutPerSec##@@##OneMinuteRate | The average number of bytes sent per second over a period of time. | Seconds |
| KafkaServer | Requests Per Second For Produce | kafka_RequestsPerSecondForProduce##@@##OneMinuteRate | Number of producer requests per second | Seconds |
| KafkaServer | Requests Per Second For Fetch Consumer | kafka_RequestsPerSecondForFetchConsumer##@@##OneMinuteRate | Number of consumer requests per second | Seconds |
| KafkaServer | Requests Per Second For Fetch Follower | kafka_RequestsPerSecondForFetchFollower##@@##OneMinuteRate | Number of follower requests per second | Seconds |
| KafkaServer | Total Daemon Threads | DaemonThreadCount | The total number of threads available in a process. Daemon threads include started and alive threads too. | Count |
| KafkaServer | TotalPeakThreads | PeakThreadCount | Total number of currently running threads | Count |
| KafkaServer | Total Live Threads | ThreadCount | The total number of threads that are running. A thread automatically expires once it completes its execution. | Count |
| KafkaServer | Thread Count | ThreadCount | Total number of threads currently running in the system. | Count |
| KafkaServer | Total Started Threads | TotalStartedThreadCount | Total number of threads that have been started since the application started. | Count |
| KafkaServer | Heap Memory Usage | HeapMemoryUsage-used | Total amount of heap memory being used by the application. | Bytes |
| KafkaServer | Max NonHeap Memory | NonHeapMemoryUsage-committed | the maximum amount of non-heap memory used by the HEAL Appnomic software. | Kilobytes |
| KafkaServer | Max Heap Memory | HeapMemoryUsage-committed | the maximum amount of heap memory used by the HEAL Appnomic software. | Kilobytes |
| KafkaServer | NonHeap Memory Usage | NonHeapMemoryUsage-used | Current Non-heap memory usage (in MB) of the server. | Bytes |
| KafkaServer | Process CPU Load | ProcessCpuLoad | The percentage of CPU usage by the process running the server. | Percentage |
| KafkaServer | Collection Count | CollectionCount | Total number of collections that have occurred. | Count |
| KafkaServer | Collection Time | CollectionTime | Approximate accumulated collection elapsed time in milliseconds. | Milliseconds |
| KafkaServer | Consumer | kafka_fetch-Consumer##@@##OneMinuteRate | the number of entities that receive data from a source. | Count |
| KafkaServer | Produce | kafka_fetch-Produce##@@##OneMinuteRate | The total number of produced items. | Count |
| KafkaServer | CPU Seconds Total | KUBE_KAFKA_CPU_SECONDS_TOTAL | Total user and system CPU time spent in seconds | Count |
| KafkaServer | JVM Buffer Pool Used | KUBE_KAFKA_JVM_BUFFER_POOL_USED | Used bytes of a given JVM buffer pool | Bytes |
| KafkaServer | JVM Buffer Pool Total | KUBE_KAFKA_JVM_BUFFER_POOL_TOTAL | Bytes capacity of a given JVM buffer pool | Bytes |
| KafkaServer | JVM Buffer Used | KUBE_KAFKA_JVM_BUFFER_USED | Used buffers of a given JVM buffer pool | Count |
| KafkaServer | JVM Buffer Total | KUBE_KAFKA_JVM_BUFFER_TOTAL | Total bytes allocated in a given JVM memory pool | Bytes |
| KafkaServer | JVM Heap Memory Used | KUBE_KAFKA_JVM_HEAP_MEMORY_USED | Used bytes of a given JVM | Bytes |
| KafkaServer | JVM NonHeap Memory Used | KUBE_KAFKA_JVM_NONHEAP_MEMORY_USED | Used bytes of a given JVM | Bytes |
| KafkaServer | JVM Heap Memory Committed | KUBE_KAFKA_JVM_HEAP_MEMORY_COMMITTED | Committed (bytes) of a given JVM memory | Bytes |
| KafkaServer | JVM NonHeap Memory Committed | KUBE_KAFKA_JVM_NONHEAP_MEMORY_COMMITTED | Committed (bytes) of a given JVM memory | Bytes |
| KafkaServer | JVM Heap Memory Max | KUBE_KAFKA_JVM_HEAP_MEMORY_MAX | Max (bytes) of a given JVM memory | Bytes |
| KafkaServer | JVM NonHeap Memory Max | KUBE_KAFKA_JVM_NONHEAP_MEMORY_MAX | Max (bytes) of a given JVM memory | Bytes |
| KafkaServer | JVM Threads New | KUBE_KAFKA_JVM_THREADS_NEW | Current count of threads by new state | Count |
| KafkaServer | JVM Threads Terminated | KUBE_KAFKA_JVM_THREADS_TERMINATED | Current count of threads by terminate state | Count |
| KafkaServer | JVM Threads runnerable | KUBE_KAFKA_JVM_THREADS_RUNNERABLE | Current count of threads by runnerable state | Count |
| KafkaServer | JVM Threads Blocked | KUBE_KAFKA_JVM_THREADS_BLOCKED | Current count of threads by blocked state | Count |
| KafkaServer | JVM Threads Waiting | KUBE_KAFKA_JVM_THREADS_WAITING | Current count of threads by waiting state | Count |
| KafkaServer | JVM Threads Time waiting | KUBE_KAFKA_JVM_THREADS_TIME_WAITING | Current count of threads by time waiitng state | Count |
| KafkaServer | JVM Threads Time Current | KUBE_KAFKA_JVM_THREADS_TIME_CURRENT | Current thread count of a JVM | Count |
| KafkaServer | JVM Threads Time Daemon | KUBE_KAFKA_JVM_THREADS_TIME_DAEMON | Daemon thread count of a JVM | Count |
| KafkaServer | JVM Threads Time Peak | KUBE_KAFKA_JVM_THREADS_TIME_PEAK | Peak thread count of a JVM | Count |
| KafkaServer | JVM Threads Time DeadLock | KUBE_KAFKA_JVM_THREADS_TIME_DEADLOCK | Cycles of JVM-threads that are in deadlock waiting to acquire object monitors or ownable synchronizers | Count |
| KafkaServer | Produce Latency per Broker | KUBE_KAFKA_PRODUCE_LATENCY_PER_BROKER | Produce Latency per Broker | Count |
| KafkaServer | Produce Request Per Broker | KUBE_KAFKA_PRODUCE_REQUEST_PER_BROKER | Produce Request Per Broker | Count |
| KafkaServer | Failed Produce Request Per Broker | KUBE_KAFKA_FAILED_PRODUCE_REQUEST_PER_BROKER | Failed Produce Request Per Broker | Count |
| KafkaServer | Failed Produce Request Per Topic | KUBE_KAFKA_FAILED_PRODUCE_REQUEST_PER_TOPIC | Failed Produce Request Per Topic | Count |
| KafkaServer | Failed Fetch Request Per Broker | KUBE_KAFKA_FAILED_FETCH_REQUEST_PER_BROKER | Failed Fetch Request Per Broker | Count |
| KafkaServer | Failed Fetch Request Per Topic | KUBE_KAFKA_FAILED_FETCH_REQUEST_PER_TOPIC | Failed Fetch Request Per Topic | Count |
| KafkaServer | Fetch Follower Request Per Broker | KUBE_KAFKA_FETCH_FOLLOWER_REQUEST_PER_BROKER | Fetch Follower Request Per Broker | Count |
| KafkaServer | Fetch Consumer Request Per Broker | KUBE_KAFKA_FETCH_CONSUMER_REQUEST_PER_BROKER | Fetch Consumer Request Per Broker | Count |
| KafkaServer | Partitions | kafka-ReplicaManager-PartitionCount##@@##Value | Total number of partitions across all topics in the cluster. | Count |
| KafkaServer | Leaders | kafka-ReplicaManager-LeaderCount##@@##Value | Total number of leaders across all topics in the cluster. | Count |
| KafkaServer | Under Min Isr Partitions | kafka-ReplicaManager-UnderMinIsrPartitionCount##@@##Value | Number of partitions below the minimum ISR. | Count |
| KafkaServer | Request Handler Avg Idle Percent | kafka-KafkaRequestHandlerPool-RequestHandlerAvgIdlePercent##@@##OneMinuteRate | Average idle percentage of the request handler threads in the Kafka broker’s thread pool. | Percentage |
| KafkaServer | Request Queue Size | kafka-RequestChannel-RequestQueueSize##@@##Value | Current size of the request queue. | Count |
| KafkaServer | Response Queue Size | kafka-RequestChannel-ResponseQueueSize##@@##Value | Current size of the response queue. | Count |
| KafkaServer | Event Queue Size | kafka-EventQueueSize##@@##Value | Size of the event queue in the controller. Events are actions that must be performed by the controller, such as creating a new topic or moving a partition to a new broker. if the value continuously increases or stays at a high value, the controller may be stuck and unable to perform the required actions. | Count |
| KafkaServer | Log Size | kafka-Log-Size##@@##Value | Size of a specific partition’s log in bytes. | Bytes |
| KafkaServer | Num Log Segments | kafka-Log-NumLogSegments##@@##Value | Number of log segments in a specific partition. | Count |
| KafkaServer | Log End Offset | kafka-Log-LogEndOffset##@@##Value | Offset of the last message in a specific partition’s log | Count |
| KafkaServer | Log Start Offset | kafka-Log-LogStartOffset##@@##Value | Offset of the first message in a specific partition’s log | Count |
| KafkaServer | Bytes In | kafka-BrokerTopicMetrics-BytesInPerSec##@@##OneMinuteRate | Rate of incoming bytes per second for a specific topic | Bytes |
| KafkaServer | Bytes Out | kafka-BrokerTopicMetrics-BytesOutPerSec##@@##OneMinuteRate | Rate of outgoing bytes per second for a specific topic. | Bytes |
| KafkaServer | Failed Fetch Requests | kafka-BrokerTopicMetrics-FailedFetchRequestsPerSec##@@##OneMinuteRate | Rate of fetch requests that failed per second for a specific topic. | Count |
| KafkaServer | Failed Produce Requests | kafka-BrokerTopicMetrics-FailedProduceRequestsPerSec##@@##OneMinuteRate | Rate of produce requests that failed per second for a specific topic. | Count |
| KafkaServer | Messages In | kafka-BrokerTopicMetrics-MessagesInPerSec##@@##OneMinuteRate | Incoming message rate per second for a specific topic. | Count |
| KafkaServer | Total Fetch Requests | kafka-BrokerTopicMetrics-TotalFetchRequestsPerSec##@@##OneMinuteRate | Total rate of fetch requests (successful and failed) per second for a specific topic. | Count |
| KafkaServer | Total Produce Requests | kafka-BrokerTopicMetrics-TotalProduceRequestsPerSec##@@##OneMinuteRate | Total rate of produce requests (successful and failed) per second for a specific topic. | Count |
| KafkaServer | Socket Server | kafka-SocketServerMetrics##@@##connection-creation-rate | Rate at which new connections are being created on a specific network processor of a specific listener in the Kafka broker. | Count |
| KafkaServer | Network Idle | kafka-Network-IdlePercent##@@##Value | Percentage of time the specified network processor is idle. The networkProcessor specifies the ID of the network processor to monitor. | MilliSeconds |
| KafkaServer | Requests Per Second | kafka-RequestMetrics-RequestsPerSec##@@##Count | Rate at which requests are being processed by the Kafka broker per second. | Milliseconds |
| KafkaServer | Request Queue Time | kafka-RequestMetrics-RequestQueueTimeMs##@@##Count | Time (in milliseconds) that a request spends waiting in the broker’s request queue before being processed. | Milliseconds |
| KafkaServer | Total Time | kafka-RequestMetrics-TotalTimeMs##@@##Count | Total time (in milliseconds) that a request takes to complete, from the time it is received by the broker to the time the response is sent back to the client. | Milliseconds |
| KafkaServer | Local Time | kafka-RequestMetrics-LocalTimeMs##@@##Count | Time (in milliseconds) that a request spends being processed by the broker on the local machine. | Milliseconds |
| KafkaServer | Remote Time | kafka-RequestMetrics-RemoteTimeMs##@@##Count | Time (in milliseconds) that a request spends being processed by other brokers in the cluster. | Milliseconds |
| KafkaServer | Throttle Time | kafka-RequestMetrics-ThrottleTimeMs##@@##Count | Time (in milliseconds) that a request spends being throttled by the broker. Throttling occurs when the broker determines that a client is sending too many requests too quickly and needs to be slowed down. | Milliseconds |
| KafkaServer | Response Queue Time | kafka-RequestMetrics-ResponseQueueTimeMs##@@##Count | Time (in milliseconds) that a response spends waiting in the broker’s response queue before being sent back to the client. | Milliseconds |
| KafkaServer | Response Send Time | kafka-RequestMetrics-ResponseSendTimeMs##@@##Count | Time (in milliseconds) that a response takes to be sent back to the client after it has been generated by the broker. | Milliseconds |
| KafkaServer | Messages in Partition | kafka-Messages-in-Partition | Messages in Partition | Count |
| KafkaServer | Writes Miss | Writes_Miss_Percentage | Writes Miss Percentage measures the rate of failed write attempts compared to total write requests in Kafka. | Percentage |
| KafkaServer | Partition Last Stable Offset Lag | KUBE_KAFKA_CLUSTER_PARTITION_LASTSTABLEOFFSETLAG | Lag between the last stable offset and the current log end offset. | Count |
| KafkaServer | Consumer Lag | KUBE_KAFKA_FETCHERLAGMETRICS_CONSUMERLAG | Lag in messages between replica and leader | Count |
| KafkaServer | Active Connection | KUBE_KAFKA_LISTENERS_ACTIVE_CONNECTION_COUNT | Current number of open connections | Count |
| KafkaServer | Rate of new connections | KUBE_KAFKA_NETWORK_LISTENERS_CONNECTION_CREATION_RATE | Rate of new connections | Count |
| KafkaServer | Rate of closed connections | KUBE_KAFKA_SERVER_SOCKET_SERVER_METRICS_CONNECTION_CLOSE_RATE | Rate at which connections are closed | Count |
| KafkaServer | Failed auth attempts per listener | KUBE_KAFKA_NETWORK_LISTENERS_FAILED_AUTHENTICATION | Number of failed authentication attempts | Count |
| KafkaServer | Acceptor Blocked | KUBE_KAFKA_NETWORK_ACCEPTOR_ACCEPTORBLOCKEDPERCENT_COUNT_TOTAL | 'Total occurrences of acceptor being blocked (due to CPU, IO, etc.)' | Count |
| KafkaServer | Connection Closed | KUBE_KAFKA_SERVER_SOCKET_SERVER_METRICS_CONNECTION_CLOSE | Total number of connections closed | Count |
| KafkaServer | Total Connection | KUBE_KAFKA_SERVER_SOCKET_SERVER_METRICS_CONNECTION_COUNT | Current number of active connections | Count |
| KafkaServer | Connection Creation Rate | KUBE_KAFKA_SERVER_SOCKET_SERVER_METRICS_CONNECTION_CREATION_RATE | New connections per minute | Count |
| KafkaServer | Failed auth attempts per listener | KUBE_KAFKA_SERVER_SOCKET_SERVER_METRICS_FAILED_AUTHENTICATION_RATE | failures/second Failed authentications per minute | Count |
| KafkaServer | Incoming Bytes | KUBE_KAFKA_SERVER_SOCKET_SERVER_METRICS_INCOMING_BYTE | Rate of bytes received | Bytes |
| KafkaServer | Outgoing Bytes | KUBE_KAFKA_SERVER_SOCKET_SERVER_METRICS_OUTGOING_BYTE | Rate of bytes sent | Bytes |
| KafkaServer | IO Time | KUBE_KAFKA_SERVER_SOCKET_SERVER_METRICS_IO_TIME_NS | time spent in I/O operations | Count |
| KafkaServer | IO Wait | KUBE_KAFKA_SERVER_SOCKET_SERVER_METRICS_IO_WAIT_RATIO | Proportion of time waiting for IO (wait time / total IO time) | Count |
| KafkaServer | Partition Insync Replicas | KUBE_KAFKA_CLUSTER_PARTITION_INSYNCREPLICASCOUNT | Total number of in-sync replicas (ISRs) | Count |
| KafkaServer | Total no of Errors | KUBE_KAFKA_NETWORK_REQUESTMETRICS_ERRORS_TOTAL | Total number of errors that have occurred while processing network requests on a Kafka broker. | Count |
| KafkaServer | Incoming Bytes | KUBE_KAFKA_SERVER_BROKERTOPICMETRICS_BYTESIN_TOTAL | Total number of bytes received by a Kafka broker from producers | Bytes |
| KafkaServer | Outgoing Bytes | KUBE_KAFKA_SERVER_BROKERTOPICMETRICS_BYTESOUT_TOTAL | Total number of bytes sent by a Kafka broker to consumers | Bytes |
| KafkaServer | Total Message Received | KUBE_KAFKA_SERVER_BROKERTOPICMETRICS_MESSAGESIN_TOTAL | Total number of messages successfully received by a broker from producer | Count |
| KafkaServer | Total no of Request | KUBE_KAFKA_SERVER_SOCKET_SERVER_METRICS_REQUEST | Total number of request broker from producer | Count |