Hello @Roshan Thomas(UST,IN),
welcome to this moderated Azure community forum.
The simple answer is that it does not help to determine that.
These are two separate mechanisms.
The MetricsCollector collects Prometheus messages emitted by the edgeAgent and edgeHub modules and sends them to the cloud so the Metrics worksbooks in the IoTHub can read it from Azure Monitoring.
The connection state is determined at an interval by the IoT Hub. It is seen in the Azure portal UI or you could collect the connectivity events emitted via the routing mechanism.
Of course, you could combine these two to get more fine-grained insights regarding the connectivity of you could eg. add a heartbeat.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.