AutomationDev85 opened a new pull request, #70013: URL: https://github.com/apache/airflow/pull/70013
# Overview The scheduler currently only exports scheduler.dagruns.running as a single, untagged count — there's no way to see how many Dag runs are running or queued for a specific Dag. This makes it hard to spot Dags that are backlogged in the QUEUED state (e.g. stuck behind max_active_runs limits or pool exhaustion) or to compare running-vs-queued load per Dag in dashboards/alerts. This change adds per-dag_id visibility by emitting both scheduler.dagruns.running and a new scheduler.dagruns.queued metric, each tagged with dag_id, so operators can track queue backlog and running by each Dag. We look forward to your feedback. # Details of change: * Rename _emit_running_dags_metric function to _emit_dag_runs_metric; * Emit scheduler.dagruns.running / scheduler.dagruns.queued gauges tagged by dag_id --- ##### Was generative AI tooling used to co-author this PR? - [x] Yes -- Claude Sonnet 5 Generated-by: Claude Sonnet 5 following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- 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]
