Currently I have setup the Grafana Agent through Docker, unfortunately I can’t open the host. It said unavailable. I need to use Grafana Agent to collect logs and the push to the Grafana Loki

Agent.yaml
server:
log_level: info
metrics:
global:
scrape_interval: 1m
configs:
- name: test
host_filter: false
scrape_configs:
- job_name: local_scrape
static_configs:
- targets: [‘127.0.0.1:12345’]
labels:
cluster: ‘localhost’
remote_write:
- url: http://localhost:9009/api/prom/push