EMQ告警

麻烦帮我看下我系统告警代表什么意思。另外告警信息跟文档的对应不上,看不出告警内容
https://www.emqx.io/docs/zh/latest/observability/alarms.html
微信截图_20240428091554
微信截图_20240428091501

emqx 的具体版本是多少?
有全一点的告警信息么,或者说在 emqx 日志里面有相关的告警么。我一时也没看出来是什么原因。

开源5.0.26

2024-04-28T13:37:14.440405+08:00 warning: {“time”:1714282634440405,“pid”:“<0.2272.0>”,“name”:“conn_congestion/设备号-IMEI-JmvXXSkt/设备号”,“msg”:“alarm_is_activated”,“message”:“connection congested: #{buffer => 4096,clientid => <<"设备号-IMEI-JmvXXSkt">>,conn_state => connected,connected_at => 1714282028324,high_msgq_watermark => 8192,high_watermark => 1048576,memory => 284992,message_queue_len => 0,peername => <<"39.144.46.106:10165">>,pid => <<"<0.25732.109>">>,proto_name => <<"MQTT">>,proto_ver => 4,recbuf => 369280,recv_cnt => 22,recv_oct => 949,reductions => 2551579,send_cnt => 492,send_oct => 41539,send_pend => 76,sndbuf => 46080,sockname => <<"172.18.126.192:1883">>,socktype => tcp,username => <<"设备号">>}”,“line”:418,“level”:“warning”,“mfa”:“emqx_alarm:do_actions/3”}

2024-04-28T13:40:26.336567+08:00 warning: {“time”:1714282826336567,“pid”:“<0.2272.0>”,“name”:“conn_congestion/设备号-IMEI-TRVNtdjw/设备号”,“msg”:“alarm_is_activated”,“message”:“connection congested: #{buffer => 4096,clientid => <<"设备号-IMEI-TRVNtdjw">>,conn_state => connected,connected_at => 1714282192713,high_msgq_watermark => 8192,high_watermark => 1048576,memory => 284992,message_queue_len => 0,peername => <<"39.144.46.234:7553">>,pid => <<"<0.26017.109>">>,proto_name => <<"MQTT">>,proto_ver => 4,recbuf => 369280,recv_cnt => 14,recv_oct => 668,reductions => 2748198,send_cnt => 554,send_oct => 46599,send_pend => 149,sndbuf => 46080,sockname => <<"172.18.126.192:1883">>,socktype => tcp,username => <<"设备号">>}”,“line”:418,“level”:“warning”,“mfa”:“emqx_alarm:do_actions/3”}

2024-04-28T13:41:52.716608+08:00 warning: {“time”:1714282912716608,“pid”:“<0.2272.0>”,“name”:“conn_congestion/设备号-IMEI-TRVNtdjw/设备号”,“msg”:“alarm_is_deactivated”,“line”:424,“level”:“warning”,“mfa”:“emqx_alarm:do_actions/3”}

conn_congestion是设置send_pend > 0 就会告警,说明从 emqx 向订阅者发布消息有累积。就是 emqx 发消息给订阅者的 tcp 线路堵了。

如果不想要这个告警:
可以把这个配置放到 emqx.conf里面:

conn_congestion.enable_alarm = false
conn_congestion.min_alarm_sustain_duration = 60s

英文的文档有提了一下:Alarm | EMQX Documentation

conn_congestion	Critical	Connection process congestion	connection congested

这种告警肯定需要,另外后面遇到告警该如何区分属于什么类型的问题