Delete a monitor - Amazon CloudWatch
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Delete a monitor

Before you can delete a monitor in Network Monitor, you must deactivate or delete all probes associated with the monitor, regardless of the monitor State. After a monitor is deactivated or deleted, you are no longer be charged for probes in the monitor. Be aware that you can't restore a deleted monitor. You can delete a monitor using the Amazon CloudWatch console or the Amazon Command Line Interface.

If you delete or deactivate a probe, CloudWatch retains the metrics it has published for 15 days.

Delete a monitor using the console

Use the CloudWatch console to delete a monitor in Network Monitor.

To delete a monitor using the console
  1. Open the CloudWatch console at https://console.amazonaws.cn/cloudwatch/, and then under Network Monitoring, choose Network Monitor.

  2. In the Network monitors section, choose the monitor that you want to delete.

  3. Choose Actions, and then choose Delete.

  4. If you have any active probes for the monitor, you're prompted to deactivate them. Choose Deactivate probes.

    Note

    You can't cancel or undo this action after you choose Deactivate probes. Deactivated probes, however, aren't removed from the monitor. If you like, you can reactivate them later. See Activating or deactivating a probe.

  5. Enter confirm in the confirmation field, and then choose Delete.

Delete a monitor by using the CLI

Delete a monitor in Network Monitor by using the Amazon Command Line Interface.

To delete a monitor by using the CLI
  1. To delete a monitor, you need the monitor name. If you don't know the name, get a list of your monitors by running the list-monitors command. Note the name of the monitor that you want to delete.

  2. Verify whether the monitor contains any active probes. Use get-monitor with the monitor name from the previous step. This returns a list of any probes associated with that monitor.

  3. If the monitor contains active probes, you must first either set the probes to inactive or delete them.

  4. After the probes are set to INACTIVE or deleted, you can delete the monitor by running the delete-monitor command. Inactive probes are not deleted when you delete the monitor.