- Default File Location : ${COLLECTOR_DIR}/plugin
- Dynamic application By java code
- Plugin Type
- Pack Plugin
- AlertRule Plugin
- Adding layer before store incoming data
- Type
- AlertPack Plugin
- CounterPack Plugin
- ObjectPack Plugin
- SummaryPack Plugin
- XLogPack Plugin
- ProfilePack Plugin
public void process(AlertPack
$pack, PluginHelper $ $) {
// your code... ref.) scouter.lang.pack.AlertPack
}
public void process(PerfCounterPack
$pack, PluginHelper $ $) {
// your code... ref.) scouter.lang.pack.PerfCounterPack
}
public void process(ObjectPack
$pack, PluginHelper $ $) {
// your code... ref.) scouter.lang.pack.ObjectPack
}
public void process(SummaryPack
$pack, PluginHelper $ $) {
// your code... ref.) scouter.lang.pack.SummaryPack
}
public void process(XLogPack
$pack, PluginHelper $ $) {
// your code... ref.) scouter.lang.pack.XLogPack
}
public void process(XLogProfilePack
$pack, PluginHelper $ $) {
// your code... ref.) scouter.lang.pack.XLogProfilePack
}
- void log(Object c) : logging
- void println(Object c) : standard out
- void logTo(String file, String msg) : logging to a specific file
- String objName(XLogPack p) : get object name
- String objType(XLogPack p) : get object type
- String service(XLogPack p) : get service name
- String error(XLogPack p) : get error name
- String userAgent(XLogPack p) : get user agent
- String referer(XLogPack p) : get referrer
- String login(XLogPack p) : get login value
- String desc(XLogPack p) : get desc value
- String group(XLogPack p) : get group value
- Refer to PluginHelper API
- Refer to Alert Plugin Guide