scouter
scouter copied to clipboard
How to filter a special service in xLog and alert it in the "Alert" chart.
Hello,Thank you for develop this useful tool,i have installed it and run it without any problem,but i wonder how to filter a special service in xLog and alert it in the "Alert" chart. Specifically,I'm trying to develop a Built-in Plugin, how to send a alert in here:
@ServerPlugin(PluginConstants.PLUGIN_SERVER_XLOG)
public void xlog(XLogPack pack){
if(conf.getBoolean("ext_plugin_null_xlog_enabled", true)) {
// filter special service and alert it
}
}
You can user plugin helper class.
https://github.com/scouter-project/scouter/blob/master/scouter.document/main/PluginHelper-API.md
https://github.com/scouter-project/scouter/blob/master/scouter.server/src/main/java/scouter/server/plugin/PluginHelper.java