sanjana2505006 opened a new issue, #18039: URL: https://github.com/apache/dolphinscheduler/issues/18039
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Currently, the Master and Worker modules are missing some key metrics that would be really useful for troubleshooting and monitoring. I noticed that a few metrics classes were already defined but weren't actually being used in the code. I've added the following metrics: - **Master**: Tracking workflow and task state changes (success, failure, kill, retry, etc.), as well as a timer for how long it takes to generate a workflow instance. - **Worker**: Added a timer to measure the actual execution time of a task on the worker side. - **Timeout Monitoring**: Also added a counter to track when task timeout events occur. ### Are you willing to submit a PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
