...after having followed a bunch of tutorials, e.g.
I started the grafana container with:
%box docker run -d -p 3000:3000 --add-host=host.docker.internal:host-gateway --name grafana grafana/grafana-oss
But when I try to reach the prometheus instance from the grafana container it doesn't work and times out.
box% docker exec -it grafana /bin/bash
bash-5.1$ wget http://host.docker.internal:9090
Connecting to host.docker.internal:9090 (172.17.0.1:9090)
Host is arch linux. What am I doing wrong?
EDIT: Maybe I have to configure prometheus differently? I just have
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: "server"
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ["<HOST_IP:8088"]