average-cartoon-62018
06/13/2023, 5:27 PMversion: '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:
- 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?