Updated on 2023-12-15 GMT+08:00

Resource Tracking

Scenario

You can view operation records of a cloud resource throughout its lifecycle.

Prerequisites

You have enabled CTS and trackers are running properly. For details about how to enable CTS, see Overview.

Procedure (for New Console)

The following takes the records of all operations on an ECS server as an example.

  1. Log in to the management console as a CTS administrator.
  2. Click in the upper left corner to select the desired region and project.
  3. Click in the upper left corner and choose Management & Governance > Cloud Trace Service. The CTS console is displayed.
  4. Choose Trace List in the left navigation pane.
  5. Set filters as follows:

    Select ECS for Trace Source and ecs for Resource Type, and enter {ID of the faulty VM} for Resource ID. You can also directly enter {ID of the faulty VM} to view the filtering result.

    By default, operations performed in the last hour are queried. You can also set the time range to view the matching traces in the last seven days at most.

    To obtain the operation records of the last week, query them in the OBS bucket. Choose Tracker List in the left navigation pane. In the displayed tracker list, click the OBS bucket name in the row of the management tracker.

    To store operation records for more than seven days, you must configure the management tracker to transfer them to an OBS bucket. Otherwise, you cannot query the operation records generated seven days ago.

  6. Download traces older than seven days or all traces by following the instructions in Querying Archived Traces.
  7. Check all the traces obtained in 5 and 6.

Procedure (for Old Console)

The following takes the records of all operations on an ECS server as an example.

  1. Log in to the management console as a CTS administrator.
  2. Click in the upper left corner to select the desired region and project.
  3. Click in the upper left corner and choose Management & Governance > Cloud Trace Service. The CTS console is displayed.
  4. Choose Trace List in the left navigation pane.
  5. Set filters in sequence and click Query.

    Select Management for Trace Type, ECS for Trace Source, ecs for Resource Type, Resource ID for Search By, enter the ID of the faulty VM, and click Query. By default, the matching traces generated in the last hour are returned. You can also set the time range to view the matching traces in the last seven days at most.

  6. Choose Tracker List in the navigation pane on the left.
  7. Download traces older than seven days or all traces by following the instructions in Querying Archived Traces.
  8. Check all the traces obtained in 5 and 7.