Get "http://X.local:9323/metrics": context deadline exceeded

Hello World! :wink:

I’m trying to follow Configure and run Prometheus

Prometheus’ running:

% docker service list                  
ID             NAME         MODE         REPLICAS   IMAGE                    PORTS
d5k8lg0zcryk   prometheus   replicated   1/1        prom/prometheus:latest   *:9090->9090/tcp

probing docker’ endpoint via curl

% curl -I http://X.local:9323/metrics
HTTP/1.1 200 OK
Content-Type: text/plain; version=0.0.4; charset=utf-8
Date: Mon, 31 Jan 2022 05:28:21 GMT


yet, when I access UI via “http://localhost:9090/targets” “docker” endpoint shows up with an error

Get “http://X.local:9323/metrics”: context deadline exceeded

Please advise.

per Collect Docker metrics with Prometheus | Docker Documentation

  "metrics-addr" : "",
  "experimental" : true

I changed it to X.local:9293 and now it’s working :wink: yey to me)))