mirror of https://github.com/InternLM/InternLM
fix(config): monitor config key error when args_check is False (#362)
* add monitor switch * add switch to light monitor * fix alert_address is empty * fix light monitor heartbeat * init light_monitor on rank_log only * add comments to the monitoring config * optimize config * fix monitor config key error when args_check is Falsepull/320/head
parent
26a7397752
commit
064965527b
|
@ -468,6 +468,7 @@ def initialize_distributed_env(
|
|||
args_sanity_check()
|
||||
|
||||
# init light monitor client
|
||||
if gpc.config.get("monitor") and gpc.config.monitor.get("alert"):
|
||||
alert_config = gpc.config.monitor.alert
|
||||
if alert_config.enable_feishu_alert and gpc.is_rank_for_log():
|
||||
light_monitor_address = alert_config.light_monitor_address
|
||||
|
|
Loading…
Reference in New Issue