mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
docs: add new workspace notifications dashboard and config (#16548)
closes #16511 [preview](https://coder.com/docs/@16511-dashboard-vscode-notif/admin/monitoring/notifications) (beta tag is removed in https://github.com/coder/coder/pull/17096) --------- Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com>
This commit is contained in:
@@ -14,27 +14,24 @@ user(s) of the event.
|
||||
|
||||
Coder supports the following list of events:
|
||||
|
||||
### Workspace Events
|
||||
### Template Events
|
||||
|
||||
These notifications are sent to the workspace owner:
|
||||
These notifications are sent to users with **template admin** roles:
|
||||
|
||||
- Workspace created
|
||||
- Workspace deleted
|
||||
- Workspace manual build failure
|
||||
- Workspace automatic build failure
|
||||
- Workspace manually updated
|
||||
- Workspace automatically updated
|
||||
- Workspace marked as dormant
|
||||
- Workspace marked for deletion
|
||||
- Report: Workspace builds failed for template
|
||||
- This notification is delivered as part of a weekly cron job and summarizes
|
||||
the failed builds for a given template.
|
||||
- Template deleted
|
||||
- Template deprecated
|
||||
|
||||
### User Events
|
||||
|
||||
These notifications are sent to users with **owner** and **user admin** roles:
|
||||
|
||||
- User account activated
|
||||
- User account created
|
||||
- User account deleted
|
||||
- User account suspended
|
||||
- User account activated
|
||||
|
||||
These notifications are sent to users themselves:
|
||||
|
||||
@@ -42,28 +39,50 @@ These notifications are sent to users themselves:
|
||||
- User account activated
|
||||
- User password reset (One-time passcode)
|
||||
|
||||
### Template Events
|
||||
### Workspace Events
|
||||
|
||||
These notifications are sent to users with **template admin** roles:
|
||||
These notifications are sent to the workspace owner:
|
||||
|
||||
- Template deleted
|
||||
- Template deprecated
|
||||
- Workspace automatic build failure
|
||||
- Workspace created
|
||||
- Workspace deleted
|
||||
- Workspace manual build failure
|
||||
- Workspace manually updated
|
||||
- Workspace marked as dormant
|
||||
- Workspace marked for deletion
|
||||
- Out of memory (OOM) / Out of disk (OOD)
|
||||
- [Configure](#configure-oomood-notifications) in the template `main.tf`.
|
||||
- Report: Workspace builds failed for template
|
||||
- This notification is delivered as part of a weekly cron job and summarizes
|
||||
the failed builds for a given template.
|
||||
- Template admins can [configure OOM/OOD](#configure-oomood-notifications) notifications in the template `main.tf`.
|
||||
- Workspace automatically updated
|
||||
|
||||
## Delivery Methods
|
||||
|
||||
Notifications can be delivered through the Coder dashboard Inbox and by SMTP or webhook.
|
||||
OOM/OOD notifications can be delivered to users in VS Code.
|
||||
|
||||
You can configure:
|
||||
|
||||
- SMTP or webhooks globally with
|
||||
[`CODER_NOTIFICATIONS_METHOD`](../../../reference/cli/server.md#--notifications-method)
|
||||
(default: `smtp`).
|
||||
- Coder dashboard Inbox with
|
||||
[`CODER_NOTIFICATIONS_INBOX_ENABLED`](../../../reference/cli/server.md#--notifications-inbox-enabled)
|
||||
(default: `true`).
|
||||
|
||||
Premium customers can configure which method to use for each of the supported
|
||||
[Events](#workspace-events).
|
||||
See the [Preferences](#delivery-preferences) section for more details.
|
||||
|
||||
## Configuration
|
||||
|
||||
You can modify the notification delivery behavior using the following server
|
||||
flags.
|
||||
You can modify the notification delivery behavior in your Coder deployment's
|
||||
`https://coder.example.com/settings/notifications`, or with the following server flags:
|
||||
|
||||
| Required | CLI | Env | Type | Description | Default |
|
||||
|:--------:|-------------------------------------|-----------------------------------------|------------|-----------------------------------------------------------------------------------------------------------------------|---------|
|
||||
| ✔️ | `--notifications-dispatch-timeout` | `CODER_NOTIFICATIONS_DISPATCH_TIMEOUT` | `duration` | How long to wait while a notification is being sent before giving up. | 1m |
|
||||
| ✔️ | `--notifications-method` | `CODER_NOTIFICATIONS_METHOD` | `string` | Which delivery method to use (available options: 'smtp', 'webhook'). See [Delivery Methods](#delivery-methods) below. | smtp |
|
||||
| -️ | `--notifications-max-send-attempts` | `CODER_NOTIFICATIONS_MAX_SEND_ATTEMPTS` | `int` | The upper limit of attempts to send a notification. | 5 |
|
||||
| -️ | `--notifications-inbox-enabled` | `CODER_NOTIFICATIONS_INBOX_ENABLED` | `bool` | Enable or disable inbox notifications in the Coder dashboard. | true |
|
||||
|
||||
### Configure OOM/OOD notifications
|
||||
|
||||
@@ -75,18 +94,6 @@ This can help prevent agent disconnects due to OOM/OOD issues.
|
||||
To enable OOM/OOD notifications on a template, follow the steps in the
|
||||
[resource monitoring guide](../../templates/extending-templates/resource-monitoring.md).
|
||||
|
||||
## Delivery Methods
|
||||
|
||||
Notifications can currently be delivered by either SMTP or webhook. Each message
|
||||
can only be delivered to one method, and this method is configured globally with
|
||||
[`CODER_NOTIFICATIONS_METHOD`](../../../reference/cli/server.md#--notifications-method)
|
||||
(default: `smtp`). When there are no delivery methods configured, notifications
|
||||
will be disabled.
|
||||
|
||||
Premium customers can configure which method to use for each of the supported
|
||||
[Events](#workspace-events); see the [Preferences](#delivery-preferences)
|
||||
section below for more details.
|
||||
|
||||
## SMTP (Email)
|
||||
|
||||
Use the `smtp` method to deliver notifications by email to your users. Coder
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
||||
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12 2L12 10M12 10L15 7M12 10L9 7" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M2 13H5.16026C6.06543 13 6.51802 13 6.91584 13.183C7.31367 13.3659 7.60821 13.7096 8.19729 14.3968L8.80271 15.1032C9.39179 15.7904 9.68633 16.1341 10.0842 16.317C10.482 16.5 10.9346 16.5 11.8397 16.5H12.1603C13.0654 16.5 13.518 16.5 13.9158 16.317C14.3137 16.1341 14.6082 15.7904 15.1973 15.1032L15.8027 14.3968C16.3918 13.7096 16.6863 13.3659 17.0842 13.183C17.482 13 17.9346 13 18.8397 13H22" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"/>
|
||||
<path d="M17 2.12695C18.6251 2.28681 19.7191 2.64808 20.5355 3.46455C22 4.92902 22 7.28604 22 12.0001C22 16.7141 22 19.0712 20.5355 20.5356C19.0711 22.0001 16.714 22.0001 12 22.0001C7.28595 22.0001 4.92893 22.0001 3.46447 20.5356C2 19.0712 2 16.7141 2 12.0001C2 7.28604 2 4.92902 3.46447 3.46455C4.28094 2.64808 5.37486 2.28681 7 2.12695" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -194,6 +194,12 @@
|
||||
"path": "./user-guides/workspace-management.md",
|
||||
"icon_path": "./images/icons/generic.svg"
|
||||
},
|
||||
{
|
||||
"title": "Workspace Notifications",
|
||||
"description": "Manage workspace notifications",
|
||||
"path": "./user-guides/inbox/index.md",
|
||||
"icon_path": "./images/icons/inbox-in.svg"
|
||||
},
|
||||
{
|
||||
"title": "Workspace Scheduling",
|
||||
"description": "Cost control with workspace schedules",
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
# Workspace notifications
|
||||
Reference in New Issue
Block a user