Fix uploading of startLocation and endLocation metrics to PushGateway
Purpose of this pull request
This pull request addresses an issue with the Chunjun data integration platform where specific metrics, startLocation and endLocation, were not being uploaded to the Prometheus PushGateway. This failure in metrics reporting has significant implications for monitoring and troubleshooting data synchronization tasks, as these metrics are crucial for understanding the data flow and pinpointing where discrepancies occur. The fix introduces modifications to ensure that these metrics are captured accurately and transmitted to the Prometheus PushGateway, enhancing observability and reliability of data synchronization processes in environments using different versions of Flink.
[x] I have executed the 'mvn spotless:apply' command to format my code.
[x] I have a meaningful commit message (including the issue id, the template of commit message is '[hotfix-1786][chunjun-metrics-prometheus] a meaningful commit message.')
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] New and existing unit tests pass locally with my changes.
[x] I have checked my code and corrected any misspellings.
[x] My commit is only one. (If there are multiple commits, you can use 'git squash' to compress multiple commits into one.)
Fix uploading of startLocation and endLocation metrics to PushGateway
Purpose of this pull request
This pull request addresses an issue with the Chunjun data integration platform where specific metrics,
startLocation
andendLocation
, were not being uploaded to the Prometheus PushGateway. This failure in metrics reporting has significant implications for monitoring and troubleshooting data synchronization tasks, as these metrics are crucial for understanding the data flow and pinpointing where discrepancies occur. The fix introduces modifications to ensure that these metrics are captured accurately and transmitted to the Prometheus PushGateway, enhancing observability and reliability of data synchronization processes in environments using different versions of Flink.Which issue you fix
Fixes #1786
Checklist: