channels
Section channels
describes the channels that are available for send notifications.
Supported channels:
- slack
- telegram
- syslog
- notify
- discord
- webhook
- alertmanager
- alertmanager receiver
- twilio voice
- log
Slack
name
string
Required, Unique
Channel name
token
string
Required
Slack application token
channel
string
Required
Slack channel
ignore
bool
Default: false
If this option is True, this channel will be ignored by default. This option will be ignored if you explicitly define the channel in your script meta-tags or alert options
Telegram
name
string
Required, Unique
Channel name
token
string
Required
Telegram bot API token
chatId
int
Required
Chat ID
timeout
int
By default: 5000 (5 sec)
timeout in milliseconds
proxy
Socks5 proxy settings
If auth
section is defined, it will use for authentication
ignore
bool
Default: false
If this option is True, this channel will be ignored by default. This option will be ignored if you explicitly define the channel in your script meta-tags or alert options
Syslog
JSON marshalled messaged will be send to syslog server
name
string
Required, Unique
Channel name
tag
string
Syslog tag
network
string
Network type
- udp
- tcp
- empty string for use local syslog server
address
string
Server address
priority
string
Default:
EMERG
Message priority
Format: <SEVERITY>[|<FACILITI>]
Severity:
- EMERG
- ALERT
- CRIT
- ERR
- WARNING
- NOTICE
- INFO
- DEBUG
Facility:
- KERN
- USER
- DAEMON
- AUTH
- SYSLOG
- LPR
- NEWS
- UUCP
- CRON
- AUTHPRIV
- FTP
- LOCAL0
- LOCAL1
- LOCAL2
- LOCAL3
- LOCAL4
- LOCAL5
- LOCAL6
For example:
ignore
bool
Default: false
If this option is True, this channel will be ignored by default. This option will be ignored if you explicitly define the channel in your script meta-tags or alert options
Notify
Send standard OS GUI notification
name
string
Required, Unique
Channel name
icons
- success
- error
- warning
- string
Path to images (use as notification icons)
ignore
bool
Default: false
If this option is True, this channel will be ignored by default. This option will be ignored if you explicitly define the channel in your script meta-tags or alert options
email "default" {
from = "[email protected]"
to = "[email protected]"
cc = "[email protected]"
host = "bar.com"
port = 1234
username = "user"
password = "secret"
secure = "ssl"
timeout = 10
ignore = false
}
email:
- name: default
from: [email protected]
to: [email protected]
cc: [email protected]
host: bar.com
port: 1234
username: user
password: secret
secure: ssl
timeout: 1000
ignore: false
name
string
Required, Unique
Channel name
from
string
Field 'from'
to
string
Field 'to'
cc
string
Field 'cc'
host
string
Hostname
port
int
Port
If Port
equals to '465' and Secure
field is empty, Secure
filed will be set to 'ssl'
username
string
Username
password
string
Password
secure
string
none
, ssl
, tls
or empty string
timeout
int
timeout in seconds. By default - 10 sec.
ignore
bool
Default: false
If this option is True, this channel will be ignored by default. This option will be ignored if you explicitly define the channel in your script meta-tags or alert options
Discord
name
string
Required, Unique
Channel name
token
string
Token
channelID
int
Channel ID
ignore
bool
Default: false
If this option is True, this channel will be ignored by default. This option will be ignored if you explicitly define the channel in your script meta-tags or alert options
Webhook
When you provide text in payload.body
, you can use macros:
$level
$alert_name
$text
$image
$fields
name
string
Required, Unique
settings.url
Required, URL
Webhook URL
settings.method
By default: POST
HTTP method
settings.auth
Type must be
none
,basic
,bearer
orcustom
. By default:none
(empty string)
Authentication data. Depending on the type:
type: basic
Should be not empty: - settings.auth.login - settings.auth.password
type: bearer
Should be not empty: - settings.auth.token
settings.payload.body
POST body. Must be defined with method=POST
settings.payload.queryParams
String=String pairs for set query params
settings.timeout (time interval)
By default: 3000
Timeout in milliseconds
settings.headers
String=String pairs for set HTTP request headers
ignore
bool
Default: false
If this option is True, this channel will be ignored by default. This option will be ignored if you explicitly define the channel in your script meta-tags or alert options
Alertmanager
TODO: links to - alertmanager docs - manual for balerter-alertmanager communications
name
string
Required, Unique
settings
See webhook settings
ignore
bool
Default: false
If this option is True, this channel will be ignored by default. This option will be ignored if you explicitly define the channel in your script meta-tags or alert options
alertmanager receiver
TODO: links to - alertmanager-receiver docs - manual for balerter-alertmanager_receiver communications
name
string
Required, Unique
settings
See webhook settings
ignore
bool
Default: false
If this option is True, this channel will be ignored by default. This option will be ignored if you explicitly define the channel in your script meta-tags or alert options
twilio voice
TwilioVoice channel allows you to make voice calls on change alert status
https://www.twilio.com/
name
string
Required, Unique
sid
string
Required
Your SID from the Twilio console
token
string
Your Token from the Twilio console
from
string
Sender phone number
to
string
Your phone number
twiml
string
TwiML template.
You can to specify the macros {TEXT}
, which will be replaced to alert text.
If this option is empty, alert text will be placed as TwiML template
ignore
bool
Default: false
If this option is True, this channel will be ignored by default. This option will be ignored if you explicitly define the channel in your script meta-tags or alert options
timeout
int
Default: 30000 (30s)
HTTP request timeout, milliseconds
log
Log channel allows you to print your alerts to the console with Info level
name
string
Required, Unique
ignore
bool
Default: false
If this option is True, this channel will be ignored by default. This option will be ignored if you explicitly define the channel in your script meta-tags or alert options