mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-10-04 08:26:24 +08:00
feat: add profile and alarm notification
This commit is contained in:
@@ -53,7 +53,10 @@ func Config() {
|
||||
|
||||
// initializing the print system and process resources
|
||||
if cfg.App.EnableStat {
|
||||
stat.Init(stat.WithLog(logger.Get()))
|
||||
stat.Init(
|
||||
stat.WithLog(logger.Get()),
|
||||
stat.WithAlarm(), // invalid if it is windows, the default threshold for cpu and memory is 0.8, you can modify them
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user