kind: smtp version: v2 metadata: name: smtp spec: host: <smtp host> port: <smtp port> username: <username> password: <password> --- kind: alerttarget version: v2 metadata: name: email-alerts spec: email: <email>
Configure Alerting on Runtime Fabric
Runtime Fabric enables you to send alerts through an existing SMTP server. Runtime Fabric provides alert functionality to send notifications when system health is compromised.
Procedure
-
Using a terminal, open a shell/SSH connection to a controller VM.
-
Create a file named
alert-smtp.yamlthat contains the following: -
Modify the contents of
alert-smtp.yamlusing the following values specific to your environment:Key Description smtp.hostThe endpoint of the SMTP server.
<smtp port>The port used to connect to the SMTP server. (465 by default).
<username>The username to use when connecting to the SMTP server.
<password>The password to use when connecting to the SMTP server.
<email>The recipient email address.
-
Run the following on the controller VM.
$ gravity resource create -f alert-smtp.yaml
Alerts should now be configured to send through your SMTP server.
| Currently only a single alerts email recipient is supported. |
Built-in Alerts
The following table lists some of default alerts provided by Anypoint Runtime Fabric:
| Alert | Description |
|---|---|
High CPU usage |
Sends a warning when > 75% used. Triggers a critical error when > 90% used. |
High memory usage |
Sends a warning when > 80% used. Triggers a critical error when > 90% used. |
High disk space usage |
Sends a warning when > 80% used. Triggers a critical error when > 90% used. |
High node usage |
Sends a warning when > 90% used. Triggers a critical error when > 95% used. |
etcd instance health |
Sends an error when the etcd master is unaccessible for longer than 5 min. |



