El 15 de septiembre de 2026, todos los entornos de Cloud Composer 1 y Cloud Composer 2 versión 2.0.x alcanzarán el final de su ciclo de vida previsto, y no podrás usarlos. Te recomendamos que planifiques la migración a Cloud Composer 3.
En esta página, se explica cómo obtener información sobre los DAG en tu entorno.
Formas de ver información sobre los DAG
Cloud Composer proporciona varias formas de obtener información detallada sobre los DAG en tu entorno:
La IU de DAG es una sección de la interfaz de la Google Cloud consola de Cloud Composer dedicada a ver y supervisar DAG, ejecuciones de DAG y tareas individuales.
La IU de Airflow es la interfaz web integrada de Airflow.
Airflow CLI es la interfaz de línea de comandos de Airflow. Puedes obtener información sobre los DAGs ejecutando comandos de la CLI de Airflow con gcloud.
Acerca de la IU de DAG de Cloud Composer
La IU de DAG es una sección de la interfaz de la Google Cloud consola de Cloud Composer dedicada a ver y supervisar DAG, ejecuciones de DAG y tareas individuales.
En la IU de DAG, puedes hacer lo siguiente:
Consulta una lista de los DAG de tu entorno, incluidos los intervalos de programación, los estados y las descripciones de los DAG.
Consulta los detalles de las ejecuciones de DAG, incluidas las ejecuciones correctas, activas y fallidas, y el tiempo transcurrido desde la última ejecución completada. Para cada DAG, puedes ver el historial de ejecuciones de DAG y las instancias de tareas asociadas con este DAG en particular, incluidos los registros de las tareas ejecutadas.
Filtra los detalles de la ejecución de DAG. Por ejemplo, puedes elegir un intervalo de tiempo y crear consultas para seleccionar la información que necesitas.
Consulta información detallada sobre DAG y tareas individuales. Esto incluye diagramas de DAG visualizados, información sobre las tareas dentro de un DAG, el código fuente de DAG y la información adicional sobre los DAG.
Antes de comenzar
Asegúrate de que tu cuenta tenga un rol que pueda acceder a la IU de DAG y ver sus detalles. Para obtener más información, consulta Guía de control de acceso.
La IU de DAG es compatible con Cloud Composer 2.0.1 y versiones posteriores.
Cómo ver la lista de DAG de tu entorno
Console
En la pestaña DAGs de tu entorno, se muestra la lista de DAG junto con los detalles de la ejecución de cada DAG.
Para ver la lista de DAG, sigue estos pasos:
En la Google Cloud consola, ve a la página Environments.
En la columna Lista de DAG, sigue el vínculo DAG de tu entorno.
Puedes usar filtros para ver los detalles solo de ciertos DAG o de ciertas condiciones. Por ejemplo:
Selecciona el campo Filtros.
En la lista desplegable, selecciona la propiedad DAG id.
Especifica el identificador del DAG. Los resultados muestran detalles solo para el DAG seleccionado.
Para incluir más DAG, agrega operadores OR seguidos de los IDs de DAG (opcional).
Para filtrar por otras condiciones, agrega otras propiedades en el campo Filtros (opcional). Por ejemplo, puedes filtrar DAG con ejecuciones fallidas si especificas Failed runs:>0.
IU de Airflow
Para ver la lista de DAG en la interfaz web de Airflow, sigue estos pasos:
En la Google Cloud consola, ve a la página Environments.
En la columna Lista de DAG, sigue el vínculo DAG de tu entorno.
Selecciona un DAG.
En la página Detalles del DAG, ve a la pestaña Ejecuciones.
Selecciona una ejecución de DAG de la lista para ver sus detalles, como el estado de las instancias de tareas para esta ejecución de DAG, la cantidad de intentos y la duración de la ejecución. Puedes seleccionar tareas individuales para ver los registros de instancias de tareas.
IU de Airflow
Para ver la lista de DAG en la interfaz web de Airflow, sigue estos pasos:
En la Google Cloud consola, ve a la página Environments.
En la columna Servidor web de Airflow, sigue el vínculo de Airflow para tu entorno.
Accede con la Cuenta de Google que tiene los permisos correspondientes.
En la interfaz web de Airflow, en el menú, selecciona Explorar>Ejecuciones de DAG. En la página Ejecuciones de DAG, se muestran las ejecuciones de DAG de tu entorno. Puedes hacer clic en el vínculo de la columna ID de ejecución para obtener información adicional sobre las tareas.
gcloud
Ejecuta el comando dags list-runs de la CLI de Airflow:
En la columna Servidor web de Airflow, sigue el vínculo de Airflow para tu entorno.
Accede con la Cuenta de Google que tiene los permisos correspondientes.
En la interfaz web de Airflow, en la página DAGs, se muestra una lista de DAGs para tu entorno.
En tu DAG, en la columna Vínculos, sigue el vínculo Vista de gráfico.
Consulta el código fuente de los DAG y la información adicional sobre ellos
Console
Puedes ver el código fuente de tus DAG y la información adicional, como los identificadores de DAG y los vínculos a los archivos de definición de DAG en el bucket del entorno.
En la Google Cloud consola, ve a la página Environments.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-08-29 (UTC)"],[[["\u003cp\u003eThis page provides information on how to view and manage DAGs (Directed Acyclic Graphs) within Cloud Composer 2 environments.\u003c/p\u003e\n"],["\u003cp\u003eYou can access detailed information about DAGs, DAG runs, and individual tasks using the DAG UI in the Google Cloud console, the Airflow UI, or the Airflow CLI.\u003c/p\u003e\n"],["\u003cp\u003eThe DAG UI allows for viewing lists of DAGs, their states, descriptions, and schedules, as well as the ability to pause, unpause, and trigger DAGs.\u003c/p\u003e\n"],["\u003cp\u003eThe page explains how to view the history of DAG runs, task instance details, and DAG diagrams, using both the console and Airflow UI.\u003c/p\u003e\n"],["\u003cp\u003eUsers can view DAG source code and other relevant information, but it's important to note that editing the source code is not possible directly from the console.\u003c/p\u003e\n"]]],[],null,["\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\n[Cloud Composer 3](/composer/docs/composer-3/view-dags \"View this page for Cloud Composer 3\") \\| **Cloud Composer 2** \\| [Cloud Composer 1](/composer/docs/composer-1/view-dags \"View this page for Cloud Composer 1\")\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThis page explains how to get information about DAGs in your environment.\n\nWays to view information about DAGs\n\nCloud Composer provides several ways to get detailed information about DAGs in your environment:\n\n- DAG UI is a section of Google Cloud console interface for Cloud Composer dedicated to viewing and monitoring DAGs, DAG runs, and individual tasks.\n- [Airflow UI](/composer/docs/composer-2/access-airflow-web-interface) is the built-in web interface of Airflow.\n- [Airflow CLI](/composer/docs/composer-2/access-airflow-cli) is the command-line interface of Airflow. You can get information about DAGs by running Airflow CLI commands with `gcloud`.\n\nAbout Cloud Composer DAG UI\n\nDAG UI is a section of Google Cloud console interface for\nCloud Composer dedicated to viewing and monitoring DAGs, DAG runs,\nand individual tasks.\n\nIn DAG UI, you can:\n\n- View a list of DAGs in your environment, including schedule intervals, DAG\n states, and descriptions.\n\n- Pause, unpause, and [trigger DAGs](/composer/docs/composer-2/schedule-and-trigger-dags#manual).\n\n- View DAG run details, including successful, active, and failed runs, time\n since the last completed run. For each DAG, you can see the history of DAG\n runs and task instances associated with this particular DAG, including logs\n for executed tasks.\n\n- Filter DAG run details. For example, you can pick a time interval and\n create queries to select the information that you need.\n\n- View detailed information about individual DAGs and tasks. This includes\n visualized DAG diagrams, information about the tasks within a DAG, DAG\n source code, and extra information about DAGs.\n\nBefore you begin\n\n- Make sure that your account has a role that can access DAG UI and view DAG\n details. For more information, see [Access control](/composer/docs/composer-2/access-control).\n\n- DAG UI is supported in Cloud Composer 2.0.1 and later\n versions.\n\n\n View the list of DAGs for your environment \n\n Console\n\n The **DAGs** tab of your environment shows the list of DAGs along with DAG\n run details for each DAG.\n\n To view the list of DAGs:\n 1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n 2. In the **DAG list** column, follow the **DAGs** link for your environment.\n\n You can use filters to view the details only for certain DAGs or for\n certain conditions. For example:\n 1. Select the **Filters** field.\n 2. From the drop-down list, select the **DAG id** property.\n 3. Specify the identifier of the DAG. The results show details only for the selected DAG.\n 4. (Optional) To include more DAGs, add `OR` operators followed by DAG ids.\n 5. (Optional) To filter on other conditions, add other properties in the **Filters** field. For example, you can filter for DAGs with failed runs by specifying `Failed runs:\u003e0`.\n\n Airflow UI\n\n To view the list of DAGs in the Airflow web interface:\n 1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n 2. In the **Airflow webserver** column, follow the **Airflow** link for your\n environment.\n\n 3. Log in with the Google account that has the appropriate permissions.\n\n 4. In the Airflow web interface, on the **DAGs** page, a list of DAGs for\n your environment is displayed.\n\n gcloud\n\n Run the `dags list` Airflow CLI command:\n\n\n gcloud composer environments run \u003cvar translate=\"no\"\u003eENVIRONMENT_NAME\u003c/var\u003e \\\n --location \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n dags list -- -o plain\n\n Replace:\n - `ENVIRONMENT_NAME` with the name of the environment.\n - `LOCATION` with the region where the environment is located.\n\n View the history of DAG runs and tasks \n\n Console\n\n The **Runs** tab on the **DAG details** page shows the history of DAG runs\n for an individual DAG.\n\n To view the history of DAG runs:\n 1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n 2. In the **DAG list** column, follow the **DAGs** link for your environment.\n\n 3. Select a DAG.\n\n 4. On the **DAG details** page, go to the **Runs** tab.\n\n 5. Select a DAG run from the list to view the DAG run details, such as the\n state of task instances for this DAG run, the number of tries and the\n execution duration. You can select individual tasks to view\n task instance logs.\n\n Airflow UI\n\n To view the list of DAGs in the Airflow web interface:\n 1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n 2. In the **Airflow webserver** column, follow the **Airflow** link for your\n environment.\n\n 3. Log in with the Google account that has the appropriate permissions.\n\n 4. In the Airflow web interface, in the menu, select\n **Browse** \\\u003e **DAG Runs** . The **DAG Runs** page displays\n DAG runs for your environment. You can follow the link in the **Run ID**\n column to get additional information about tasks.\n\n gcloud\n\n Run the `dags list-runs` Airflow CLI command:\n\n\n gcloud composer environments run \u003cvar translate=\"no\"\u003eENVIRONMENT_NAME\u003c/var\u003e \\\n --location \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n dags list-runs -- -d \u003cvar translate=\"no\"\u003eDAG_ID\u003c/var\u003e\n\n Replace:\n - `ENVIRONMENT_NAME` with the name of the environment.\n - `LOCATION` with the region where the environment is located.\n - `DAG_ID` with the name of the DAG.\n\n You can get additional information about task instances by running `tasks state` and `tasks states-for-dag-run` Airflow CLI commands.\n\n For more information, see [Access Airflow CLI](/composer/docs/composer-2/access-airflow-cli) and the\n [Airflow CLI reference](https://airflow.apache.org/docs/apache-airflow/stable/cli-and-env-variables-ref.html).\n\n \u003cbr /\u003e\n\n View DAG diagrams \n\n Console\n\n The **Diagram** tab on the **DAG details** page show the visualisation of a\n DAG with task dependencies.\n\n To view the diagram of a DAG:\n 1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n 2. In the **DAG list** column, follow the **DAGs** link for your environment.\n\n 3. Select a DAG.\n\n 4. On the **DAG details** page, go to the **Diagram** tab.\n\n 5. (Optional) To see additional information about tasks, select individual tasks on the diagram.\n\n Airflow UI\n\n To view the diagram of a DAGs in the Airflow web interface:\n 1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n 2. In the **Airflow webserver** column, follow the **Airflow** link for your\n environment.\n\n 3. Log in with the Google account that has the appropriate permissions.\n\n 4. In the Airflow web interface, on the **DAGs** page, a list of DAGs for\n your environment is displayed.\n\n 5. For your DAG, in the **Links** column, follow the **Graph View** link.\n\n View DAG source code and additional information about DAGs \n\n Console\n\n You can view the source code of your DAGs and additional information such as\n DAG identifiers and links to DAG definition files in the environment's\n bucket.\n | **Note:** It is not possible to edit the source code of your DAGs on this tab.\n 1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n 2. In the **DAG list** column, follow the **DAGs** link for your environment.\n\n 3. Select a DAG.\n\n 4. To view the DAG source code, go to the **Diagram** tab.\n\n 5. To view additional information about the DAG, go to the **Source** tab.\n\n Airflow UI\n\n To view the diagram of a DAGs in the Airflow web interface:\n 1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n 2. In the **Airflow webserver** column, follow the **Airflow** link for your\n environment.\n\n 3. Log in with the Google account that has the appropriate permissions.\n\n 4. In the Airflow web interface, on the **DAGs** page, click on the name of\n your DAG.\n\n 5. In the page with DAG details, navigate to available tabs to view\n additional information about the DAG.\n\n What's next\n - [Add and update DAGs](/composer/docs/composer-2/manage-dags)\n - [Schedule and trigger DAGs](/composer/docs/composer-2/schedule-and-trigger-dags)"]]