我如何发送报警电子邮件
作者: hope1234567hope创建于 2025年3月26日更新于 2025年3月26日
这是 MySQL 配置: - title:monitorThreads - position: [[0, 32], [80, 12]] - rate-ms: 1000 - sample: $mysql_connection -e "show status like 'Threads_created';" | awk '{print $2}' - border: false - color: 178 - triggers: - title: Threads_created - condition: echo "$cur < 17" | bc -l - actions: - terminal-bell: true - visual: true - script: | echo "alert:Threads_created is ${cur}" | mail -s "alert MySQL" [email protected]
内容来源: sqshq/sampler