AutomationDev85 opened a new pull request, #76540: URL: https://github.com/apache/airflow/pull/76540
# Overview Expire stale task-state gauge series in the chart’s StatsD exporter after five minutes without updates. Task-state gauges can retain a nonzero value even after no tasks remain in that state. For example, if the scheduler restarts before reporting zero, the exporter may retain the last value until it receives another update or restarts. A five-minute TTL removes these stale series when updates stop, preventing outdated values from remaining in dashboards indefinitely. # Details of change: - Add `ttl: 5m` to the existing running, queued, scheduled, and deferred task-state mappings. - Preserve metric names, labels, and counter behavior. - Per-mapping TTLs take precedence over the global default TTL. TTL removes inactive series; it does not publish zero. No new metric mappings are introduced. ##### Was generative AI tooling used to co-author this PR? - [X] Yes: GitHub Copilot Generated-by: GitHub Copilot following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) --- Drafted-by: GitHub Copilot (no human review before posting) -- 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]
