File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,17 +9,16 @@ All available django settings (not every setting may apply to promgen)
99are listed in the `django
1010reference <https://docs.djangoproject.com/en/1.11/ref/settings/> `__.
1111
12+ .. _smtp_config :
1213Configuring an SMTP Server
1314--------------------------
1415
1516An SMTP server for sending outgoing mail can be configured this way:
1617
1718.. code-block :: yaml
1819
19- promgen.notification.email :
20- sender : promgen@example.com
21-
2220 django :
21+ DEFAULT_FROM_EMAIL : promgen@example.com
2322 EMAIL_HOST : mail.example.com
2423 EMAIL_PORT : 587
2524 EMAIL_HOST_USER : user@example.com
Original file line number Diff line number Diff line change @@ -3,6 +3,20 @@ Configuring Notification Plugins
33
44Different settings for the Notification Plugins can be defined in the ``promgen.yml `` file.
55
6+ Email
7+ ---------------------
8+
9+ An SMTP server for sending outgoing mail can be configured by adding Django email settings
10+ (see :ref: `smtp_config `).
11+ The **email's sender address ** either can be set using the ``DEFAULT_FROM_EMAIL `` Django setting
12+ or by setting the ``sender `` configuration as shown below. If both are set, the ``sender ``
13+ configuration will take precedence.
14+
15+ .. code-block :: yaml
16+
17+ promgen.notification.email :
18+ sender : promgen@example.com
19+
620 PagerDuty
721---------------------
822
@@ -18,3 +32,16 @@ PagerDuty API-compatible URLs and alert severity mapping can be configured this
1832 debug : info
1933 major : error
2034 minor : warning
35+
36+ Slack
37+ ---------------------
38+
39+ The proxy configuration specifies the proxy server that Promgen should use when sending
40+ notifications to Slack. This is useful if your environment requires outgoing requests to go
41+ through a proxy for security or network policy reasons. If your environment does not require a
42+ proxy, you can basically ignore this setting or set it to an empty string.
43+
44+ .. code-block :: yaml
45+
46+ promgen.notification.slack :
47+ proxy : http://slack-proxy.example.com:8080
You can’t perform that action at this time.
0 commit comments