AutomationDev85 opened a new pull request, #58819:
URL: https://github.com/apache/airflow/pull/58819

   # Overview
   
   While working with deferred tasks, we found that the airflow_ti_running 
metric does not include task instances in the deferred state. This change 
extends metric export to also cover scheduled, queued, and deferred states. 
With these metrics you can build dashboards that show per-DAG load in running 
and deferred states, and monitor how many tasks per DAG are waiting for 
resources in scheduled and queued states.
   
   # Change Summary
   
   * Add ti.scheduled, ti.queued and ti.deferred metrics to the code which 
exports the ti.running
   * Update description with new metrics.
   * Add fix for task_id to replace . because task group tasks are breaking the 
stasd exporting because of using . separator.
   
   * Add ti.scheduled, ti.queued and ti.deferred metrics alongside ti.running.
   * Update metric descriptions to reflect the new states.
   * Replace . with __ in task_id for StatsD compatibility (task groups use . 
as a separator, which breaks StatsD’s dot-delimited metric hierarchy).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to