alert-manager default configuration
Port configurations in this section is optional which default to 9093. All other config is mandatory. If not receiver is configured, the alert manager will not start.
To configure alert-manager to send out alert email, you should configure alert manager with receiver in your service-configuration like following:
alert-manager:
receiver: your_addr@example.com
smtp_url: smtp.office365.com:587
smtp_from: alert_sender@example.com
smtp_auth_username: alert_sender@example.com
smtp_auth_password: password_for_alert_sender
port: 9093 # this is optional, you should not write this if you do not want to change the port alert-manager is listening onIn addition, if you deployed pai behind firewall, you should configure alert-manager with use-pylon: True, to make url from alert email public available.
Also you can control the interval of sending same alert email if problem unsolved, the default interval is 24h, you can shorten it to 30m, by adding repeat-interval: 30m undert alert-manager config.
After parsing, if you configured the alert-manager the model will be like:
alert-manager:
receiver: your_addr@example.com
smtp_url: smtp.office365.com:587
smtp_from: alert_sender@example.com
smtp_auth_username: alert_sender@example.com
smtp_auth_password: password_for_alert_sender
port: 9093
configured: True
host: master_ip
url: "http://master_ip:9093"
use-pylon: False
repeat-interval: 24hif you didn't configured alert-manager, it will be like:
alert-manager:
port: 9093
configured: False
host: master_ip
url: "http://master_ip:9093"
use-pylon: False
repeat-interval: 24h