<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Capture airflow run duration in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Capture-airflow-run-duration/m-p/405218#M252430</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29490"&gt;@wert_1311&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings from Cloudera Support. Based on the Post, Your Team wish to capture the Airflow's DAG Run over the past 3 Months.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Info is Captured in the Airflow mySQL DB (For Public Cloud). You can connect to the Airflow mySQL DB [1] &amp;amp; Capture the Info from the Metadata Tables for DAG Runs. Note that Caution is recommended while accessing the Metadata Tables to avoid any Undue Changes, which may break the CDE Setup.&lt;/P&gt;&lt;P&gt;Regards, Smarak&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Customer/How-to-connect-to-CDE-AirFlow-database-In-CDP-Public-Cloud/ta-p/324309" target="_blank"&gt;https://community.cloudera.com/t5/Customer/How-to-connect-to-CDE-AirFlow-database-In-CDP-Public-Cloud/ta-p/324309&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2025 14:15:13 GMT</pubDate>
    <dc:creator>smdas</dc:creator>
    <dc:date>2025-04-01T14:15:13Z</dc:date>
    <item>
      <title>Capture airflow run duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Capture-airflow-run-duration/m-p/391463#M247638</link>
      <description>&lt;P&gt;I have a requirement to gather run duration (time) for the last 3 months, for a particular airflow job.&lt;/P&gt;&lt;P&gt;In our CDE environment we use airflow to call spark DBT jobs, of late the run duration of job have increased drastically.&lt;BR /&gt;I assume there would be a way to gather this jobs runtime duration for further analysis etc. Hoping for some assistance / guidance in getting his done.&lt;/P&gt;&lt;P&gt;CDE Version - 1.19.3-b29&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wert&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:27:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Capture-airflow-run-duration/m-p/391463#M247638</guid>
      <dc:creator>wert_1311</dc:creator>
      <dc:date>2026-04-21T06:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Capture airflow run duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Capture-airflow-run-duration/m-p/391973#M247891</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29490"&gt;@wert_1311&lt;/a&gt;&amp;nbsp;Thank you for bringing this to our Community.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see this has already by requested by you here:&amp;nbsp;&lt;BR /&gt;[0a]&lt;A href="https://community.cloudera.com/t5/Support-Questions/Monitor-alert-long-running-Airflow-jobs/m-p/388314/highlight/true#M246627" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Monitor-alert-long-running-Airflow-jobs/m-p/388314/highlight/true#M246627&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Did it not help? If not, Please try the following:&lt;/P&gt;&lt;P&gt;Airflow has the following metrics that can be used:&amp;nbsp;&lt;BR /&gt;[0b]&lt;A href="https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/logging-monitoring/metrics.html#metric-descriptions" target="_blank"&gt;https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/logging-monitoring/metrics.html#metric-descriptions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For the integration, I'd suggest you explore the feasibility based on your use-case. For example, the Metrics configuration setup is given here for StatD and OpenTelemetry.&lt;BR /&gt;[0c]&amp;nbsp;&lt;A href="https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/logging-monitoring/metrics.html#metrics-configuration" target="_blank"&gt;https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/logging-monitoring/metrics.html#metrics-configuration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, I am citing the third-party&amp;nbsp; apps that may be helpful:&amp;nbsp;&lt;BR /&gt;[0d]&amp;nbsp;&lt;A href="https://github.com/search?q=airflow+prometheus&amp;amp;type=repositories" target="_blank"&gt;https://github.com/search?q=airflow+prometheus&amp;amp;type=repositories&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Let us know how it goes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 14:28:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Capture-airflow-run-duration/m-p/391973#M247891</guid>
      <dc:creator>vaishaakb</dc:creator>
      <dc:date>2024-08-19T14:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Capture airflow run duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Capture-airflow-run-duration/m-p/405218#M252430</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29490"&gt;@wert_1311&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings from Cloudera Support. Based on the Post, Your Team wish to capture the Airflow's DAG Run over the past 3 Months.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Info is Captured in the Airflow mySQL DB (For Public Cloud). You can connect to the Airflow mySQL DB [1] &amp;amp; Capture the Info from the Metadata Tables for DAG Runs. Note that Caution is recommended while accessing the Metadata Tables to avoid any Undue Changes, which may break the CDE Setup.&lt;/P&gt;&lt;P&gt;Regards, Smarak&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Customer/How-to-connect-to-CDE-AirFlow-database-In-CDP-Public-Cloud/ta-p/324309" target="_blank"&gt;https://community.cloudera.com/t5/Customer/How-to-connect-to-CDE-AirFlow-database-In-CDP-Public-Cloud/ta-p/324309&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 14:15:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Capture-airflow-run-duration/m-p/405218#M252430</guid>
      <dc:creator>smdas</dc:creator>
      <dc:date>2025-04-01T14:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Capture airflow run duration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Capture-airflow-run-duration/m-p/405674#M252501</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29490"&gt;@wert_1311&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We hope the above Post answers your Q on the Use-Case of fetching the DAG Run over the past 3 months via Airflow DB. We shall mark the Post as Solved, yet Feel free to Update the Post if there's any further Q.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, Smarak&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 13:38:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Capture-airflow-run-duration/m-p/405674#M252501</guid>
      <dc:creator>smdas</dc:creator>
      <dc:date>2025-04-08T13:38:17Z</dc:date>
    </item>
  </channel>
</rss>

