据我了解,这意味着为了使用 [deadman] 节点的全局配置,您需要为可能的 Kapacitor [Alert node] 属性之一设置默认参数(smtp、mqtt、slack、...)
支持的 [Alert node] 列表可在文档中找到
此配置在Kapacitor 配置文件中完成。
这是电子邮件属性的示例
[smtp]
# Configure an SMTP email server
# Will use TLS and authentication if possible
# Only necessary for sending emails from alerts.
enabled = true
host = "smtp.host.com"
port = 465
username = "notify@host.com"
password = "password"
# From address for outgoing mail
from = "notify@host.com"
# List of default To addresses.
to = ["dest1@host.com","dest2@host.com"]
# Skip TLS certificate verify when connecting to SMTP server
no-verify = false
# Close idle connections after timeout
idle-timeout = "30s"
# If true the all alerts will be sent via Email
# without explicitly marking them in the TICKscript.
global = false
# Only applies if global is true.
# Sets all alerts in state-changes-only mode,
# meaning alerts will only be sent if the alert state changes.
state-changes-only = false