Why is there an automatic DAG 'airflow_monitoring' generated in GCP Composer?

跟風遠走 提交于 2020-05-29 10:34:23

问题


When creating an Airflow environment on GCP Composer, there is a DAG named "airflow_monitoring" automatically created and that is impossible to delete. Why ? How to handle it ? Should I copy this file inside my DAG folder and resign myself to make it part of my code ? I noticed that each time I upload my code it stops the execution of this DAG as it could not be found inside the DAG folder until it magically reappears.

I have already tried deleting it inside the DAG folder, delete the logs, delete it from the UI, all of this at the same time etc.


回答1:


The airflow_monitoring DAG is a per-environment liveness prober/healthcheck that is used to populate the Cloud Composer monitoring metric environment/healthy. It checks for the general overall health of your environment, or more specifically its ability schedule DAGs. This allows you to use Stackdriver features such as metric graphs, or setting alerts when your environment becomes unhealthy.

You can find more information about the metric on the GCP Metrics List, and can explore the metric in Stackdriver Monitoring under the following:

  • Resource type: Cloud Composer Environment
  • Metric: Healthy

This is a Composer-managed DAG and uses very minimal resources from your environment. Ideally, you should just leave it in your DAGs folder.



来源:https://stackoverflow.com/questions/56496779/why-is-there-an-automatic-dag-airflow-monitoring-generated-in-gcp-composer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!