//
// Output event stats
//
batches *monitoring.Uint // total number of batches processed by output
events *monitoring.Uint // total number of events processed by output
acked *monitoring.Uint // total number of events ACKed by output
failed *monitoring.Uint // total number of events failed in output
active *monitoring.Uint // events sent and waiting for ACK/fail from output
duplicates *monitoring.Uint // events sent and waiting for ACK/fail from output
dropped *monitoring.Uint // total number of invalid events dropped by the output
tooMany *monitoring.Uint // total number of too many requests replies from output
//
// Output network connection stats
//
writeBytes *monitoring.Uint // total amount of bytes written by output
writeErrors *monitoring.Uint // total number of errors on write
readBytes *monitoring.Uint // total amount of bytes read
readErrors *monitoring.Uint // total number of errors while waiting for response on output
}
1条答案
按热度按时间knsnq2tg1#
Inside the code for Libbeat,Beat系列工具使用该函数:
当你在Elastic中查询Libbeat的结果时(见下文),Output Errors是从初始时间戳的readErrors + writeErrors和最新时间戳的readErrors + writeErrors之间的测量增量中得出的。根据代码注解,Output Errors是遇到错误的网络包的数量。
下面的例子使用apm-server作为beat类型,但是你可以根据自己的需要替换它。它不会给予你 * 为什么 * 你有网络错误,但是它会把数据分开,这样你就可以识别是读错误还是写错误。