Am 15. September 2026erreichen alle Cloud Composer 1- und Cloud Composer 2-Umgebungen der Version 2.0.x das geplante Ende des Lebenszyklus und können nicht mehr verwendet werden. Wir empfehlen, die Migration zu Cloud Composer 3 zu planen.
Auf dieser Seite wird erläutert, wie Sie Informationen zu DAGs in Ihrer Umgebung abrufen.
Informationen zu DAGs aufrufen
Cloud Composer bietet mehrere Möglichkeiten, detaillierte Informationen zu DAGs in Ihrer Umgebung abzurufen:
Die DAG-Benutzeroberfläche ist ein Bereich der Google Cloud Console-Oberfläche für Cloud Composer, in dem DAGs, DAG-Ausführungen und einzelne Aufgaben angezeigt und überwacht werden können.
Die Airflow-Befehlszeile ist die Befehlszeile von Airflow. Informationen zu DAGs erhalten Sie, indem Sie Airflow-Befehlszeilenbefehle mit gcloud ausführen.
Cloud Composer DAG-Benutzeroberfläche
Die DAG-Benutzeroberfläche ist ein Bereich der Google Cloud Console-Oberfläche für Cloud Composer, in dem DAGs, DAG-Ausführungen und einzelne Aufgaben angezeigt und überwacht werden können.
In der DAG-Benutzeroberfläche haben Sie folgende Möglichkeiten:
Liste der DAGs in Ihrer Umgebung mit Zeitplanintervallen, DAG-Status und Beschreibungen aufrufen
Sie können DAGs pausieren, die Pausierung aufheben und auslösen.
Details zu DAG-Ausführungen aufrufen, einschließlich erfolgreicher, aktiver und fehlgeschlagener Ausführungen sowie Zeit seit der letzten abgeschlossenen Ausführung Für jeden DAG können Sie den Verlauf der DAG-Ausführungen und Aufgabeninstanzen sehen, die mit diesem DAG verknüpft sind, einschließlich Logs für ausgeführte Aufgaben.
Filtern Sie die Details zur DAG-Ausführung. Sie können beispielsweise ein Zeitintervall auswählen und Abfragen erstellen, um die gewünschten Informationen auszuwählen.
Detaillierte Informationen zu einzelnen DAGs und Aufgaben aufrufen Dazu gehören visualisierte DAG-Diagramme, Informationen zu den Aufgaben innerhalb eines DAG, DAG-Quellcode und zusätzliche Informationen zu DAGs.
Hinweise
Ihr Konto muss eine Rolle haben, mit der Sie auf die DAG-Benutzeroberfläche zugreifen und DAG-Details aufrufen können. Weitere Informationen finden Sie unter Zugriffssteuerung.
Für die DAG-Benutzeroberfläche muss die DAG-Serialisierung aktiviert sein.
Die DAG-Benutzeroberfläche wird in Cloud Composer 1.17.8 und höher unterstützt.
Liste der DAGs für Ihre Umgebung aufrufen
Console
Auf dem Tab DAGs Ihrer Umgebung sehen Sie eine Liste der DAGs sowie Details zu den DAG-Ausführungen für jeden DAG.
So rufen Sie die Liste der DAGs auf:
Rufen Sie in der Google Cloud -Console die Seite Umgebungen auf.
Klicken Sie in der Spalte DAG-Liste auf den Link DAGs für Ihre Umgebung.
Mithilfe von Filtern können Sie die Details nur für bestimmte DAGs oder für bestimmte Bedingungen anzeigen lassen. Beispiel:
Wählen Sie das Feld Filter aus.
Wählen Sie in der Drop-down-Liste die Property DAG-ID aus.
Geben Sie die Kennung des DAG an. Die Ergebnisse enthalten nur Details für die ausgewählte DAG.
Optional: Wenn Sie weitere DAGs einbeziehen möchten, fügen Sie OR-Operatoren gefolgt von DAG-IDs hinzu.
Optional: Wenn Sie nach anderen Bedingungen filtern möchten, fügen Sie dem Feld Filter weitere Properties hinzu. Wenn Sie beispielsweise nach DAGs mit fehlgeschlagenen Ausführungen filtern möchten, geben Sie Failed runs:>0 an.
Airflow-UI
So rufen Sie die Liste der DAGs in der Airflow-Weboberfläche auf:
Rufen Sie in der Google Cloud -Console die Seite Umgebungen auf.
Klicken Sie in der Spalte DAG-Liste auf den Link DAGs für Ihre Umgebung.
Wählen Sie einen DAG aus.
Wechseln Sie auf der Seite DAG-Details zum Tab Ausführungen.
Wählen Sie in der Liste eine DAG-Ausführung aus, um die Details dazu aufzurufen, z. B. den Status der Aufgabeninstanzen für diese DAG-Ausführung, die Anzahl der Versuche und die Ausführungsdauer. Sie können einzelne Aufgaben auswählen, um Protokolle für Aufgabeninstanzen aufzurufen.
Airflow-UI
So rufen Sie die Liste der DAGs in der Airflow-Weboberfläche auf:
Rufen Sie in der Google Cloud -Console die Seite Umgebungen auf.
Klicken Sie in der Spalte Airflow-Webserver auf den Link Airflow für Ihre Umgebung.
Melden Sie sich mit einem Google-Konto an, das über die entsprechenden Berechtigungen verfügt.
Wählen Sie in der Airflow-Weboberfläche im Menü Suchen>DAG-Ausführungen aus. Auf der Seite DAG-Ausführungen werden DAG-Ausführungen für Ihre Umgebung angezeigt. Über den Link in der Spalte Ausführungs-ID erhalten Sie weitere Informationen zu Aufgaben.
gcloud
Führen Sie in Airflow 1.10.* den Befehl list_dag_runs der Airflow-Befehlszeile aus:
LOCATION durch die Region, in der sich die Umgebung befindet.
DAG_ID durch den Namen des DAG.
Sie können zusätzliche Informationen zu Aufgabeninstanzen erhalten, indem Sie die Airflow-Befehlszeilen tasks state und tasks states-for-dag-run ausführen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-26 (UTC)."],[[["\u003cp\u003eCloud Composer offers multiple interfaces to view DAG information, including the DAG UI in the Google Cloud console, the Airflow UI, and the Airflow CLI.\u003c/p\u003e\n"],["\u003cp\u003eThe DAG UI provides a comprehensive view of DAGs, enabling users to list, pause, trigger, and monitor DAG runs, view task details, and filter information, and it requires specific user permissions and DAG serialization enabled.\u003c/p\u003e\n"],["\u003cp\u003eUsers can view the history of DAG runs and individual task details, including logs and execution duration, through both the Console's Runs tab and the Airflow UI's DAG Runs page, as well as through using specific gcloud commands in the CLI.\u003c/p\u003e\n"],["\u003cp\u003eDAG diagrams, which visually represent task dependencies, are accessible within both the Console's Diagram tab and the Airflow UI's Graph View.\u003c/p\u003e\n"],["\u003cp\u003eThe source code and additional information about DAGs can be viewed on the console, through the Diagram and Source tab, or by the Airflow UI, in the DAG details section.\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](/composer/docs/composer-3/view-dags \"View this page for Cloud Composer 3\") \\| [Cloud Composer 2](/composer/docs/composer-2/view-dags \"View this page for Cloud Composer 2\") \\| **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-1/access-airflow-web-interface) is the built-in web interface of Airflow.\n- [Airflow CLI](/composer/docs/composer-1/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-1/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-1/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\nIn Airflow 1.10.\\*, run the `list_dags` Airflow CLI command: \n\n gcloud composer environments run \u003cvar translate=\"no\"\u003eENVIRONMENT_NAME\u003c/var\u003e \\\n --location \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n list_dags\n\n\u003cbr /\u003e\n\nIn Airflow 2, run the `dags list` Airflow CLI command: \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\nIn Airflow 1.10.\\*, run the `list_dag_runs` Airflow CLI command: \n\n gcloud composer environments run \u003cvar translate=\"no\"\u003eENVIRONMENT_NAME\u003c/var\u003e \\\n --location \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n list_dag_runs -- \u003cvar translate=\"no\"\u003eDAG_ID\u003c/var\u003e\n\n\u003cbr /\u003e\n\nIn Airflow 2, run the `dags list-runs` Airflow CLI command: \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\n\u003cbr /\u003e\n\nFor more information, see [Access Airflow CLI](/composer/docs/composer-1/access-airflow-cli) and the\nAirflow CLI reference [for Airflow 1](https://airflow.apache.org/docs/apache-airflow/1.10.12/cli-ref.html) and\n[Airflow 2](https://airflow.apache.org/docs/apache-airflow/stable/cli-and-env-variables-ref.html).\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-1/manage-dags)\n- [Schedule and trigger DAGs](/composer/docs/composer-1/schedule-and-trigger-dags)"]]