3
3
Notifications are sent by Coder in response to specific internal events, such as
4
4
a workspace being deleted or a user being created.
5
5
6
+ ## Enable experiment
7
+
8
+ In order to activate the notifications feature on Coder v2.15.X, you'll need to enable the
9
+ ` notifications ` experiment. Notifications are enabled by default starting in v2.16.0.
10
+
11
+ ``` bash
12
+ # Using the CLI flag
13
+ $ coder server --experiments=notifications
14
+
15
+ # Alternatively, using the `CODER_EXPERIMENTS` environment variable
16
+ $ CODER_EXPERIMENTS=notifications coder server
17
+ ```
18
+
19
+ More information on experiments can be found
20
+ [ here] ( https://coder.com/docs/contributing/feature-stages#experimental-features ) .
21
+
6
22
## Event Types
7
23
8
24
Notifications are sent in response to internal events, to alert the affected
56
72
57
73
Notifications can currently be delivered by either SMTP or webhook. Each message
58
74
can only be delivered to one method, and this method is configured globally with
59
- [ ` CODER_NOTIFICATIONS_METHOD ` ] ( ../../reference/server#--notifications-method )
75
+ [ ` CODER_NOTIFICATIONS_METHOD ` ] ( ../../../ reference/cli /server#--notifications-method )
60
76
(default: ` smtp ` ).
61
77
62
78
Enterprise customers can configure which method to use for each of the supported
@@ -211,14 +227,14 @@ All users have the option to opt-out of any notifications. Go to **Account** ->
211
227
** Notifications** to turn notifications on or off. The delivery method for each
212
228
notification is indicated on the right hand side of this table.
213
229
214
- ![ User Notification Preferences] ( ../../images/user-notification-preferences.png )
230
+ ![ User Notification Preferences] ( ../../../ images/admin/monitoring/notifications /user-notification-preferences.png )
215
231
216
232
## Delivery Preferences (enterprise)
217
233
218
234
Administrators can configure which delivery methods are used for each different
219
235
[ event type] ( #event-types ) .
220
236
221
- ![ preferences] ( ../../images/admin/notification-admin-prefs.png )
237
+ ![ preferences] ( ../../../ images/admin/monitoring/notifications /notification-admin-prefs.png )
222
238
223
239
You can find this page under
224
240
` https://$CODER_ACCESS_URL/deployment/notifications?tab=events ` .
@@ -229,10 +245,10 @@ Administrators may wish to stop _all_ notifications across the deployment. We
229
245
support a killswitch in the CLI for these cases.
230
246
231
247
To pause sending notifications, execute
232
- [ ` coder notifications pause ` ] ( ../../reference/cli/notifications_pause ) .
248
+ [ ` coder notifications pause ` ] ( ../../../ reference/cli/notifications_pause ) .
233
249
234
250
To resume sending notifications, execute
235
- [ ` coder notifications resume ` ] ( ../../reference/cli/notifications_resume ) .
251
+ [ ` coder notifications resume ` ] ( ../../../ reference/cli/notifications_resume ) .
236
252
237
253
## Troubleshooting
238
254
@@ -259,7 +275,7 @@ Messages older than 7 days are deleted.
259
275
260
276
### Message States
261
277
262
- ![ states] ( ../../images/admin/notification-states.png )
278
+ ![ states] ( ../../../ images/admin/monitoring/notifications /notification-states.png )
263
279
264
280
_ A notifier here refers to a Coder replica which is responsible for dispatching
265
281
the notification. All running replicas act as notifiers to process pending
0 commit comments