Error loading config file: yaml: line 177: could not find expected ':'

Thank you for your feedback,

could you please assist me I'm getting an error this error when trying to install the metricbeat

Exiting: error initializing publisher: missing required field accessing 'output.elasticsearch.hosts'

These are my outputs:
output.elasticsearch:

Array of hosts to connect to.

hosts: ["x.x.x.x:9200"]

Protocol - either http (default) or https.

#protocol: "https"

Authentication credentials - either API key or username/password.

#api_key: "id:api_key"
#username: "elastic"
#password: "changeme"
setup.kibana:
host: "x.x.x.x:5601"

------------------------------ Logstash Output -------------------------------

#output.logstash:

The Logstash hosts

#hosts: ["localhost:5044"]