Hi, I am trying to run <Prometheus> on a WSL for W...
# general
a
Hi, I am trying to run Prometheus on a WSL for Windows 11 (build 22621) to monitor an application, but it does not seem to have any visibility to the outside world (i.e. localhost) My docker compose looks like this:
Copy code
version: '3.7'
services:
  prometheus:
    container_name: prometheus
    image: prom/prometheus
    restart: always
    ports:
      - 10090:9090
    volumes:
      - ./src/prometheus.yml:/etc/prometheus/prometheus.yml
The scrape config section for Prometheus is:
Copy code
- job_name: "prometheus"
    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.
    static_configs:
      - targets: ["localhost:9090"]

- job_name: "Windows-Exporter"
    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.
    scheme: http
    static_configs:
      - targets: ["host.docker.internal:9182"]
I followed the faq section to add a firewall rule for Rancher Desktop to use
host.docker.internal
, but keep getting the
context deadline exceeded
(i.e. timeout while accessing site) error for the
Windows-Exporter
job. Any idea what else I could be missing?