How to configure Elasticsearch outputs and credentials when using Elastic Agent?

Hi, I managed to set up Fleet-managed Elastic Agent on a host. I installed the System integration so the Elastic Agent gather logs and metrics. The agent is healthy according to the Fleet's Agents page on Kibana.

However, it seems like I must configure the Filebeat and Metricbeat YML files under the Elastic Agent directory for it to be able to send logs and metrics to the cluster. I had to set hosts, username, and password under the output.elasticsearch section and restart the Elastic Agent for the cluster to receive data. I was under the impression that there would be a place to configure it on Kibana but I couldn't find it.

Could someone explain what is missing? Thanks!