求支持!!!!!!!!!
用“|”有效,能获取到指标:
counter system_out_of_memory_error by logfile
/(Out of memory|out_of_memory)/ {
system_out_of_memory_error[getfilename()]++
}
用“&”无效,无法获取指标:
counter system_memory_error by logfile
/(memory&error)/ {
system_memory_error[getfilename()]++
}
categraf版本:v0.2.36