Hello @Pritam Chanda,
welcome to this moderated Azure community forum.
The IoT Metrics collector collect Prometheus metrics exposed by the edgeAgent and edgeHub module. These provide information about the system (eg. memory usage, CPU) and about the modules and the routing.
The Metrics collector cannot emit Prometheus messages.
The Metrics collector can receive Prometheus messages from custom modules but you need to write logic to exposed these in your module on a port. The collected messages are then sent to an Azure Log Analytics workspace.
You can use the same logic, the endpoint in your custom module, to expose you metrics to Prometheus if you run it as a separate container.
The simulated sensor has no custom logic for this.
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.