What is the appropriate configuration?

Greetings community.
I have been trying for several days to get an ES instance ready which I have to connect various agents, remote hosts that are servers in production to collect a series of very specific metrics of the databases that run on these machines on PostgreSQL.
After solving countless problems to add the agents, finally achieving it, I find that my ES does not collect data from the agents... then I see that port 8220 of the fleet server, which is on the same server as my ES, is only for agent enrollment, but the data is collected against ES over port 9200.

The question is:
First, if what I stated above is correct, is the data from the remote agents/hosts collected over port 9200?
And second, what should be the correct configuration? When I have set up my ES and linked with Kibana, I am asked about this aspect... in the image I attach below, the output should be the public IP of the server?
Thank you.