moaead commented on issue #3995: URL: https://github.com/apache/hertzbeat/issues/3995#issuecomment-3776591440
I've opened a PR to address this issue: https://github.com/apache/hertzbeat/pull/3998 **Root cause:** The `metricsTimeoutMonitorMap` in `CommonDispatcher.java` used inconsistent key formats: - Prometheus metrics: `job.getId()` - Other metrics: `job.getId() + "-" + metrics.getName()` This caused multiple Prometheus metrics in the same job to overwrite each other, resulting in incomplete task execution. **Changes made:** - Fixed key generation in `dispatchMetricsTask()` to use consistent format for all metrics - Fixed key retrieval in `dispatchCollectData()` with List parameter **How to verify:** 1. Deploy a monitoring job with multiple Prometheus-based metrics (e.g., Flink on YARN) 2. Check that all metrics tasks are executed and displayed in the monitoring center Happy to iterate based on feedback. -- 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: notifications-unsubscr...@hertzbeat.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org For additional commands, e-mail: notifications-h...@hertzbeat.apache.org
