Updated on 2023-08-02 GMT+08:00

KafkaProducer Monitoring

This section describes the types, names, and meanings of KafkaProducer metrics collected by APM.

Table 1 KafkaProducer metrics

Category

Metric

Name

Description

Unit

Data Type

Default Aggregation Mode

Topic (topic: Kafka topic monitoring data)

id

id

Client ID and IP address

-

ENUM

LAST

topic

topic

Kafka topic name

-

ENUM

LAST

byteRate

Bytes Sent/s

Number of bytes sent per second

Byte

INT

AVG

recordErrorRate

Errors/s

Number of errors per second

-

INT

AVG

recordRetryRate

Retries/s

Number of retries per second

-

INT

AVG

recordSendRate

Messages sent/s

Number of messages sent per second

-

INT

AVG

seqIds

Producer-generated SN

Sequence number generated by the producer

-

STRING

LAST

recordSendTotal

Total Send Times

Total number of send times

-

INT

SUM

byteTotal

Total Sent Bytes

Total number of bytes that have been sent

-

INT

SUM

KafkaProducer summary (total)

recordSendTotal

Total Send Times

Total number of send times

-

INT

SUM

byteTotal

Total Sent Bytes

Total number of bytes that have been sent

-

INT

SUM

Exception (exception: exception statistics about Kafka byte sending)

causeType

Exception Class

Exception class

-

ENUM

LAST

exceptionType

Exception Class

Exception class

-

ENUM

LAST

count

Count

Number of exceptions

-

INT

SUM

message

Exception Message

Exception message

-

STRING

LAST

stackTrace

Exception Stack

Exception stack

-

CLOB

LAST

Send methods (doSendMethod)

topic

topic

topic

-

ENUM

LAST

concurrentMax

Max. Concurrency

Maximum concurrency

-

INT

MAX

errorCount

Errors

Number of errors

-

INT

SUM

invokeCount

Calls

Number of calls

-

INT

SUM

maxTime

Max. RT

Maximum response time

-

INT

MAX

range1

0–10 ms

Number of requests with 0–10 ms response time

-

INT

SUM

range2

10–100 ms

Number of requests with 10–100 ms response time

-

INT

SUM

range3

100–500 ms

Number of requests with 100–500 ms response time

-

INT

SUM

range4

500–1000 ms

Number of requests with 500–1000 ms response time

-

INT

SUM

range5

1–10s

Number of requests with 1–10s response time

-

INT

SUM

range6

> 10s

Number of requests with more than 10s response time

-

INT

SUM

totalTime

Total RT

Total response time

-

INT

SUM