Set up an alert that emails you when an Instance in your project passes a CPU threshold. You need a TIR project with a running Instance in it. To create one, see Get started with TIR Instances.
Create a monitoring integration
Section titled “Create a monitoring integration”- In TIR, open your project. In the side menu, under PLATFORM SERVICES, select Alert Management.
- Select Manage Monitoring Integrations, then Create Monitoring Integration.
- Keep or replace the generated Integration name.
- Leave Contact point type on Mail.
- In Members, pick yourself and each person who needs the email.
- Select Create integration.
Notifications go to the email address of each member you picked.
Create an alert
Section titled “Create an alert”- Select Manage Alerts to return to the alert list, then Create Alert.
- Keep or replace the generated Alert name.
- In Service for alert, choose Instance.
- In Monitoring Integration, choose the integration you created.
- Under Alert Trigger, set Alert trigger type to CPU Utilization, Severity to Warning, Operator to Greater Than, and Threshold value to 85.
- Select Create.
The alert is created. Next, attach it to a resource so it starts watching.
Attach it to an Instance
Section titled “Attach it to an Instance”- Open your running Instance and select its Alert tab.
- Under Alerts, open Select Alerts, choose your alert, and select Attach.
The alert is now watching the Instance, with the status OK.
What happens next
Section titled “What happens next”As soon as CPU Utilization goes above 85 percent, the status in the table changes to Firing. If it is still above 85 percent after five minutes, TIR emails the members of the integration. When it drops back within the threshold, the status returns to OK and TIR sends a second email that says the alert is resolved.
To send alerts somewhere else, add Slack or a webhook as a destination. To alert on other metrics, see the metrics each service offers.