Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Full NameTypeDescription
kafka.server:type=KafkaServer,name=DiskReadBytesTotalDiskReadBytes64-bit gaugeThe total number of bytes read by the broker process.  This includes reads from all disks.  It does not include reads that came out of page cache.
kafka.server:type=KafkaServer,name=DiskWriteBytesTotalDiskWriteBytes64-bit gaugeThe total number of bytes written by the broker process.  This includes writes from all disks.

...

These metrics will be collected from the /proc/self/io file on Linux.  DiskReadBytes TotalDiskReadBytes comes out of the line marked "read_bytes:".  DiskWriteBytes TotalDiskWriteBytes comes out of taking the line marked "write_bytes:" and subtracting it from the value in the line marked "cancelled_write_bytes: ".  This reflects the fact that write bytes which were cancelled and not performed should not be counted.

The broker will read this file from the /proc filesystem whenever the metric needs to be accessed.  We will not re-read the file more than once a millisecond even if the gauge is accessed multiple times during that period.

...