新建的N9E V6 添加告警规则报错了

Viewed 42

Field 'extra_config' doesn't have a default value.


2023/08/03 21:13:50 /home/runner/work/nightingale/nightingale/models/common.go:31 Error 1364: Field 'extra_config' doesn't have a default value
[1.139ms] [rows:0] INSERT INTO alert_rule (group_id,cate,datasource_ids,cluster,name,note,prod,algorithm,algo_params,delay,severity,disabled,prom_for_duration,prom_ql,rule_config,prom_eval_interval,enable_stime,enable_etime,enable_days_of_week,enable_in_bg,notify_recovered,notify_channels,notify_groups,notify_repeat_step,notify_max_number,recover_duration,callbacks,runbook_url,append_tags,annotations,create_at,create_by,update_at,update_by) VALUES (1,'prometheus','[1]','','test','','metric','','null',0,0,0,60,'','{"queries":[{"prom_ql":"categraf_go_memstats_stack_inuse_bytes == 1","severity":2}]}',30,'00:00','23:59','0 1 2 3 4 5 6',1,1,'dingtalk','1',60,0,0,'','','','{}',1691068430,'root',1691068430,'root')
2023-08-03 21:13:51.527194 DEBUG memsto/alert_rule_cache.go:113 alert rules not changed

1 Answers

最新版本没这个问题,升级到最新版本吧