--- title: "Set up alerts for a VM" description: "Attach alerts to a running TIR Virtual Machine to be warned by mail, webhook, or Slack when a metric such as CPU or memory crosses its limit." content_type: "how-to" product: "tir-vm" platform: "TIR" url: "/tir/tir-vm/how-to/set-up-alerts-for-a-vm/" topic: ["monitor"] --- # Set up alerts for a VM Attach an alert to a TIR Virtual Machine to be warned when one of its metrics crosses the alert's limit, for example when CPU use goes above 90 percent. The warning goes where the alert's **Monitoring Integration** sends it: a mail, webhook, or Slack contact point. ## Before you begin - A VM in the **Running** state, because an alert attaches only while the VM runs. See [Stop, start, and restart a VM](/tir/tir-vm/how-to/stop-start-and-restart-a-vm/). - An alert in the same project as the VM, created with **Service for alert** set to **VM**. It watches one of these: **CPU Utilization**, **Memory Utilization**, **Network Bandwidth**, **Network Packet Rate**, **Storage IOPS**, or **Storage Throughput**. On a GPU VM, it can also watch **GPU Temperature** or **GPU Power**. To create one, see [Create an alert](/tir/alerts/how-to/create-an-alert/). ## Attach an alert 1. In **Manage VMs**, select the VM's name, then select the **Alerts** tab. 2. Under **Select Alerts**, choose one alert, then select **Attach**. The alert now watches the VM. To watch more than one metric, attach each alert in turn. If you can create alerts, you can make one right from the VM's page with the **Click here** link at the top of the tab, then attach it the same way. For the alert form, see [Alert Management](/tir/alerts/). ## Detach an alert To stop an alert from watching the VM, select **Detach alert** on its row, tick "I understand and want to detach this alert.", and select **Detach**. Deleting a VM removes the alert rules attached to it. To see the figures an alert watches, read [Monitor a VM](/tir/tir-vm/how-to/monitor-a-vm/). For problems with alerts on a VM, see [Troubleshooting TIR Virtual Machines](/tir/tir-vm/troubleshooting/tir-vm/).