Skip to content

Monitor the Status of Volume

In DataOS, the status of a Resource indicates its current life-cycle state, such as active, error, or deleted. Monitoring status allows teams to detect state transitions (e.g., from active to deleted or error) that may impact downstream dependencies, trigger configuration issues, or reflect access problems.

DataOS CLI

The status of Volume can be monitored using the DataOS CLI by executing the following command, replacing the placeholder with the workspace in which the user is working. This command will list all the Volumes created by the user.

dataos-ctl get -t volume -w ${{workspace-name}}

Example Usage:

dataos-ctl get -t volume -w public
INFO[0000] πŸ” get...                                     
INFO[0001] πŸ” get...complete                             

        NAME       | VERSION |      TYPE       | WORKSPACE | STATUS | RUNTIME |    OWNER     
-------------------|---------|-----------------|-----------|--------|---------|--------------
   pap-volume      | v1beta  |     volume      |  public   | active |         | iamgroot   

In the example above, the STATUS column indicates the current state of the Volume active in this case, which confirms that the Volume is available and usable.

Operations App

To monitor the status of Volume on the Operations app, follow the steps below:

  1. Open the Operations app.

    Open the Operations app

  2. Under the User space β†’ type β†’ Volume, search for the Volume by name.

    Operations > User Space > Volume

    The active status indicates that the Resource is valid and available for use within DataOS. This is the expected state for a healthy and usable Resource.

  3. On clicking the Volume name, its builder state can also be monitored.

    Volume details in Operations

    Monitoring the Builder Stage is crucial, especially when status = error. If the builder stage = building, the issue likely occurred after build, possibly runtime or external issues. But if the builder stage = error, then the YAML file itself needs fixing.

Status alerts

To automatically track critical state transitions, users can configure a Monitor and Pager to send alerts when the status of a Volume changes to values like error or deleted. This enables teams to respond immediately to resource failures, misconfigurations, or unexpected deletions that may impact dependent components. Click here to view the steps to set up alerts for status changes.