Elastic agent errors: Error fetching data for metricset http.json: error making http request: Get "http://unix/stats": dial unix /opt/Elastic/Agent/data/tmp/fleet-server-default.sock: connect: no such file or directory

getting these errors when i checked elastic agent error logs dashboard

Error fetching data for metricset apache.status: error fetching data: HTTP error 403 in : 403 Forbidden

Error fetching data for metricset beat.state: error making http request: Get "http://unix/state": dial unix /opt/Elastic/Agent/data/tmp/fleet-server-default.sock: connect: no such file or directory

Error fetching data for metricset apache.status: error fetching data: error making http request: Get "http://127.0.0.1/server-status?auto=": dial tcp 127.0.0.1:80: connect: connection refused

These are just error logs that i'm curious to know about. rest all is working fine.