-
Notifications
You must be signed in to change notification settings - Fork 8.1k
engine: use 0.0.0.0 for metrics-addr #21643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dvdksn
commented
Dec 16, 2024
- Closes metrics-addr should be 0.0.0.0:9323 for a dockerized prometheus to reach it #21632
✅ Deploy Preview for docsdocker ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
0517f11 to
7e4fd0f
Compare
|
We need to fix some of this; there was a proposal to expose it through the Engine API instead of separate, but I also need to dust off the work I started to expose listeners in
So... I just recalled there may be a different way; as part of And the daemon also actually starts the metrics endpoint listening on a socket; https://github.com/moby/moby/blob/8d3ecc28c1e886c59f4d23b9d1e4b35aa40696ba/daemon/metrics_unix.go#L24-L46 docker run --rm -v /var/run/docker/metrics.sock:/var/run/docker/metrics.sock alpine sh -c 'apk add --quiet --no-cache curl && curl -s --unix-socket /var/run/docker/metrics.sock http://localhost/metrics | head -n10'
# HELP builder_builds_failed_total Number of failed image builds
# TYPE builder_builds_failed_total counter
builder_builds_failed_total{reason="build_canceled"} 0
builder_builds_failed_total{reason="build_target_not_reachable_error"} 0
builder_builds_failed_total{reason="command_not_supported_error"} 0
builder_builds_failed_total{reason="dockerfile_empty_error"} 0
builder_builds_failed_total{reason="dockerfile_syntax_error"} 0
builder_builds_failed_total{reason="error_processing_commands_error"} 0
builder_builds_failed_total{reason="missing_onbuild_arguments_error"} 0
builder_builds_failed_total{reason="unknown_instruction_error"} 0Given that that one is inside We should probably look if we can make the config allow for a |
thaJeztah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for this change though
|
What's the state of engine plugins anyway? |