listen_address is not working when running as a docker container
Summary
While using v10.8.0 and adding listen_address = ":9252"
to the config.toml file, I cannot query anything on /metrics
Steps to reproduce
Run a docker container with the v10.8.0 version of the Gitlab-runner and try to check the
/metrics
from either the container itself or port-forwarding and checking from the host.
Actual behavior
From container:
curl: (7) Failed to connect to localhost port 9252: Connection refused
From host
curl: (56) Recv failure: Connection reset by peer
If instead of using listen_address
I use metrics_server
as in old versions, it works as expected.
Expected behavior
Get the
metrics
Used GitLab Runner version
RUNNER_IMAGE: "gitlab/gitlab-runner:v10.8.0"
Edited by Daniel Juarez