Notification types
Notifications include the steps to take to resolve the issue.Low-disk warning
Upsun monitors disk space usage on all applications and services in your cluster.- When available disk space drops below 20% or 4 GB, whichever is smaller, a warning notification is generated.
- When available disk space drops below 10% or 2 GB, whichever is smaller, a critical notification is generated.
- When available disk space returns above 20% or 4 GB, whichever is smaller, an all-clear notification is generated.
Low-inode warning
Inodes are filesystem metadata entries that store information about files and directories. Each file, directory, or symlink consumes one inode, regardless of its size. Running out of inodes prevents the creation of new files even when disk space is available. Upsun monitors inode usage on all applications and services in your cluster.- When available inodes drop below 20% of the total available, a warning notification is generated.
- When available inodes drop below 10% of the total available, a critical notification is generated.
- When available inodes return above 20% of the total available, an all-clear notification is generated.
Configuring notifications
By default, Upsun emails low-disk and low-inode notifications to project admins. As a project admin, you can also:- Configure the sending of health notifications through other channels (for example, via Slack or PagerDuty) as described in this topic.
- Use the CLI to add and manage health notifications.
Email notifications
A notification can trigger an email to be sent from an address of your choosing to one or more addresses of your choosing. You can view an email notification by runningupsun integration:get.
recipients that receive the default email notification, use the integration:update command.
recipients field may be any valid email address, or one of the following special values.
#adminsmaps to all project admins and up.#viewersmaps to everyone with access to the project.
health.email integration as follows:
recipients, each as its own switch.
The default from-address points to the “Upsun Bot”.
You can also configure a custom --from-address. The --from-address is whatever address you want the email to appear to be from. It is completely fine to use the same email address for both from-address and recipients. Note that depending on the configuration of the recipient mail server (including SPF and DKIM DNS entries) when using a custom from-address, the email can be marked as spam or lost.
Slack notifications
A notification can trigger a message to be posted to a Slack channel via a Slack app.1. Optional: Create a Slack app
If you are already have a Slack app, you can jump to enabling notifications.
- Open the Slack API website and go to Your apps.
- Click Create an App.
- Choose if you want to build your app from scratch, or via an app manifest.
- Give your app a name.
- Select a workspace to install your app in.
If you are not an admin of the selected workspace, request approval to install your app there.
- Click Create App.
2. Enable notifications
- Open the Slack API website and go to Your apps.
- Go to Features > OAuth & Permissions in the sidebar.
- Scroll down to the Scopes area and select User Token Scopes.
-
Click Add an OAuth Scope to add the
chat:writescope.