Contact Free trial Login

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

  1. Using a terminal, open a shell/SSH connection to a controller VM.

  2. Create a file named alert-smtp.yaml that contains the following:

    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>
  3. Modify the contents of alert-smtp.yaml using the following values specific to your environment:

    Key Description

    smtp.host

    The 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.

  4. Run the following on the controller VM.

$ gravity resource create -f alert-smtp.yaml

Alerts should now be configured to send through your STMP server.

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 inode 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.