Skip to content

Commit 8e67549

Browse files
[IMPROVEMENT] Add documentation Email and Slack notifiers #705
2 parents f84b62a + 2d7e9cf commit 8e67549

2 files changed

Lines changed: 29 additions & 3 deletions

File tree

docs/conf/django.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,16 @@ All available django settings (not every setting may apply to promgen)
99
are listed in the `django
1010
reference <https://docs.djangoproject.com/en/1.11/ref/settings/>`__.
1111

12+
.. _smtp_config:
1213
Configuring an SMTP Server
1314
--------------------------
1415

1516
An 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

docs/conf/notification.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ Configuring Notification Plugins
33

44
Different 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

0 commit comments

Comments
 (0)