Em 15 de setembro de 2026, todos os ambientes do Cloud Composer 1 e da versão 2.0.x do Cloud Composer 2 vão atingir o fim da vida útil planejado e não poderão mais ser usados. Recomendamos planejar a migração para o Cloud Composer 3.
Esta página explica como receber informações sobre DAGs no seu ambiente.
Formas de conferir informações sobre DAGs
O Cloud Composer oferece várias maneiras de receber informações detalhadas sobre DAGs no seu ambiente:
A interface do DAG é uma seção da Google Cloud interface do console do
Cloud Composer dedicada a visualizar e monitorar DAGs, execuções de DAG
e tarefas individuais.
A CLI do Airflow é a interface de linha de comando do Airflow. É possível
receber informações sobre DAGs executando comandos da CLI do Airflow com
gcloud.
Sobre a interface do DAG do Cloud Composer
A interface do DAG é uma seção da Google Cloud interface do console do
Cloud Composer dedicada a visualizar e monitorar DAGs, execuções de DAG
e tarefas individuais.
Na interface da DAG, é possível:
Confira uma lista de DAGs no seu ambiente, incluindo intervalos de programação, estados
de DAG e descrições.
Confira os detalhes da execução do DAG, incluindo execuções bem-sucedidas, ativas e com falhas, o tempo
desde a última execução concluída. Para cada DAG, é possível conferir o histórico de execuções
e instâncias de tarefas associadas a esse DAG específico, incluindo registros
de tarefas executadas.
Filtrar detalhes de execução de DAG. Por exemplo, você pode escolher um intervalo de tempo e
criar consultas para selecionar as informações necessárias.
Confira informações detalhadas sobre DAGs e tarefas individuais. Isso inclui
diagramas DAG visualizados, informações sobre as tarefas em um DAG, o código-fonte
do DAG e informações extras sobre DAGs.
Antes de começar
Verifique se a conta tem uma função que pode acessar a interface do DAG e conferir os detalhes. Para mais informações, consulte Controle de acesso.
Na coluna Lista de DAGs, siga o link DAGs do seu ambiente.
É possível usar filtros para conferir os detalhes apenas de determinados DAGs ou de
condições específicas. Exemplo:
Selecione o campo Filtros.
Na lista suspensa, selecione a propriedade ID do DAG.
Especifique o identificador do DAG. Os resultados mostram detalhes apenas para
o DAG selecionado.
(Opcional) Para incluir mais DAGs, adicione operadores OR seguidos por IDs de DAG.
(Opcional) Para filtrar outras condições, adicione outras propriedades no campo Filtros. Por exemplo, é possível filtrar DAGs com execuções
falhadas especificando Failed runs:>0.
IU do Airflow
Para conferir a lista de DAGs na interface da Web do Airflow:
No console Google Cloud , acesse a página Ambientes.
Na coluna Lista de DAGs, siga o link DAGs do seu ambiente.
Selecione um DAG.
Na página Detalhes do DAG, acesse a guia Execuções.
Selecione uma execução de DAG na lista para conferir os detalhes dela, como o
estado das instâncias de tarefas, o número de tentativas e a
duração da execução. É possível selecionar tarefas individuais para conferir
os registros de instância de tarefa.
IU do Airflow
Para conferir a lista de DAGs na interface da Web do Airflow:
No console Google Cloud , acesse a página Ambientes.
Na coluna Servidor da Web do Airflow, siga o link Airflow do
ambiente.
Faça login com a Conta do Google que tem as permissões apropriadas.
Na interface da Web do Airflow, no menu, selecione
Browse>DAG Runs. A página DAG Runs mostra as execuções de DAG do seu ambiente. É possível clicar no link na coluna ID da execução para conferir mais informações sobre as tarefas.
gcloud
Execute o comando dags list-runs da CLI do Airflow:
Na coluna Servidor da Web do Airflow, siga o link Airflow do
ambiente.
Faça login com a Conta do Google que tem as permissões apropriadas.
Na interface da Web do Airflow, na página DAGs, uma lista de DAGs do seu ambiente é exibida.
Na coluna Links do DAG, acesse o link Visualização de gráfico.
Conferir o código-fonte e outras informações sobre DAGs
Console
É possível conferir o código-fonte dos DAGs e outras informações, como identificadores de DAG e links para arquivos de definição de DAG no bucket do ambiente.
No console Google Cloud , acesse a página Ambientes.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-29 UTC."],[[["\u003cp\u003eCloud Composer provides multiple ways to access detailed information about Directed Acyclic Graphs (DAGs), including the DAG UI, Airflow UI, and Airflow CLI.\u003c/p\u003e\n"],["\u003cp\u003eThe DAG UI, accessible through the Google Cloud console, allows users to view lists of DAGs, pause or trigger them, and examine DAG run details, as well as filter results and view task logs.\u003c/p\u003e\n"],["\u003cp\u003eYou can view the history of DAG runs and tasks through the Console and Airflow UI by navigating to the Runs tab on the DAG details page or by using the appropriate gcloud CLI command.\u003c/p\u003e\n"],["\u003cp\u003eDAG diagrams, visualized with task dependencies, are accessible through the Diagram tab in the Console and the Graph View link in the Airflow UI, offering detailed task information.\u003c/p\u003e\n"],["\u003cp\u003eThe Console's Source tab and various tabs in Airflow UI offer access to DAG source code and other supplementary information about each DAG.\u003c/p\u003e\n"]]],[],null,["# View DAGs, DAG runs, and tasks\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\n**Cloud Composer 3** \\| [Cloud Composer 2](/composer/docs/composer-2/view-dags \"View this page for 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-----------------------------------\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-3/access-airflow-web-interface) is the built-in web interface of Airflow.\n- [Airflow CLI](/composer/docs/composer-3/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---------------------------\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-3/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\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-3/access-control).\n\n \u003cbr /\u003e\n\n- DAG UI requires enabled [DAG serialization](/composer/docs/composer-1/dag-serialization).\n\n- DAG UI is supported in Cloud Composer 1.17.8 and later\n versions.\n\nView the list of DAGs for your environment\n------------------------------------------\n\n### Console\n\nThe **DAGs** tab of your environment shows the list of DAGs along with DAG\nrun details for each DAG.\n\nTo view the list of DAGs:\n\n1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n2. In the **DAG list** column, follow the **DAGs** link for your environment.\n\nYou can use filters to view the details only for certain DAGs or for\ncertain conditions. For example:\n\n1. Select the **Filters** field.\n2. From the drop-down list, select the **DAG id** property.\n3. Specify the identifier of the DAG. The results show details only for the selected DAG.\n4. (Optional) To include more DAGs, add `OR` operators followed by DAG ids.\n5. (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\nTo view the list of DAGs in the Airflow web interface:\n\n1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n2. In the **Airflow webserver** column, follow the **Airflow** link for your\n environment.\n\n3. Log in with the Google account that has the appropriate permissions.\n\n4. In the Airflow web interface, on the **DAGs** page, a list of DAGs for\n your environment is displayed.\n\n### gcloud\n\nRun 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\nReplace:\n\n- `ENVIRONMENT_NAME` with the name of the environment.\n- `LOCATION` with the region where the environment is located.\n\nView the history of DAG runs and tasks\n--------------------------------------\n\n### Console\n\nThe **Runs** tab on the **DAG details** page shows the history of DAG runs\nfor an individual DAG.\n\nTo view the history of DAG runs:\n\n1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n2. In the **DAG list** column, follow the **DAGs** link for your environment.\n\n3. Select a DAG.\n\n4. On the **DAG details** page, go to the **Runs** tab.\n\n5. 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\nTo view the list of DAGs in the Airflow web interface:\n\n1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n2. In the **Airflow webserver** column, follow the **Airflow** link for your\n environment.\n\n3. Log in with the Google account that has the appropriate permissions.\n\n4. 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\nRun 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\nReplace:\n\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\nYou can get additional information about task instances by running `tasks state` and `tasks states-for-dag-run` Airflow CLI commands.\n\nFor more information, see [Access Airflow CLI](/composer/docs/composer-3/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\nView DAG diagrams\n-----------------\n\n### Console\n\nThe **Diagram** tab on the **DAG details** page show the visualisation of a\nDAG with task dependencies.\n\nTo view the diagram of a DAG:\n\n1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n2. In the **DAG list** column, follow the **DAGs** link for your environment.\n\n3. Select a DAG.\n\n4. On the **DAG details** page, go to the **Diagram** tab.\n\n5. (Optional) To see additional information about tasks, select individual tasks on the diagram.\n\n### Airflow UI\n\nTo view the diagram of a DAGs in the Airflow web interface:\n\n1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n2. In the **Airflow webserver** column, follow the **Airflow** link for your\n environment.\n\n3. Log in with the Google account that has the appropriate permissions.\n\n4. In the Airflow web interface, on the **DAGs** page, a list of DAGs for\n your environment is displayed.\n\n5. For your DAG, in the **Links** column, follow the **Graph View** link.\n\nView DAG source code and additional information about DAGs\n----------------------------------------------------------\n\n### Console\n\nYou can view the source code of your DAGs and additional information such as\nDAG identifiers and links to DAG definition files in the environment's\nbucket.\n| **Note:** It is not possible to edit the source code of your DAGs on this tab.\n\n1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n2. In the **DAG list** column, follow the **DAGs** link for your environment.\n\n3. Select a DAG.\n\n4. To view the DAG source code, go to the **Diagram** tab.\n\n5. To view additional information about the DAG, go to the **Source** tab.\n\n### Airflow UI\n\nTo view the diagram of a DAGs in the Airflow web interface:\n\n1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n2. In the **Airflow webserver** column, follow the **Airflow** link for your\n environment.\n\n3. Log in with the Google account that has the appropriate permissions.\n\n4. In the Airflow web interface, on the **DAGs** page, click on the name of\n your DAG.\n\n5. In the page with DAG details, navigate to available tabs to view\n additional information about the DAG.\n\nWhat's next\n-----------\n\n- [Add and update DAGs](/composer/docs/composer-3/manage-dags)\n- [Schedule and trigger DAGs](/composer/docs/composer-3/schedule-and-trigger-dags)"]]