Grafana Agent cant connect to Mimir

Is there any Documentation for a Docker Installation with the Grafana Agent and Mimir?

I opend the Port 9009 on the Mimir Container but the Grafana Agent cant connect to the Port. It refuses the Connection. What could it be?

Here the Error from the Grafana Agent:

ts=2023-03-28T13:42:36.888579517Z caller=dedupe.go:112 agent=prometheus instance=348fc169f2888bb0ff0976c2e8edfeb1 component=remote level=warn remote_name=348fc1-ab9cbc url=xxx.xx.x.x:9009/api/v1/push msg=“Failed to send batch, retrying” err=“Post "xxx.xx.x.x:9009/api/v1/push": dial tcp xxx.xx.x.x:9009: connect: connection refused”

Here the Config for the Grafana Agent

server:
log_level: info

metrics:
wal_directory: /tmp/grafana-agent/wal

global:
remote_write:
- url: http://xxx.xx.x.x:9009/api/v1/push

configs:
- name: agent
scrape_configs:
- job_name: agent
static_configs:
- targets: [“127.0.0.1:12345”]

Here the Config for Mimir:
multitenancy_enabled: false

blocks_storage:
backend: filesystem
bucket_store:
sync_dir: /tmp/mimir/tsdb-sync
filesystem:
dir: /tmp/mimir/data/tsdb
tsdb:
dir: /tmp/mimir/tsdb

compactor:
data_dir: /tmp/mimir/compactor
sharding_ring:
kvstore:
store: memberlist

distributor:
ring:
instance_addr: 127.0.0.1
kvstore:
store: memberlist

ingester:
ring:
instance_addr: 127.0.0.1
kvstore:
store: memberlist
replication_factor: 1

ruler_storage:
backend: filesystem
filesystem:
dir: /tmp/mimir/rules

server:
http_listen_port: 9009
log_level: error

store_gateway:
sharding_ring:
replication_factor: 1

querier:
worker:
query_frontend_addr: 127.0.0.1:9095
query_scheduler_addr: 127.0.0.1:9095

i found the answer. i made a complete new config file and now its working

I’m getting the exact same error trying to push Prometheus metrics to Mimir (I’ve copied the Prometheus and Mimir configuration files exactly from the examples). Which config file did you change to fix the problem?

Replying to my own problem - I just needed to create a docker network to fix this (I’m a docker noob as well as a Mimir noob).

If its not working, just tell me. I will send you my Config