Skip to content

fix(guides): update healthcheck to use wget and port 8000 in go-prometheus-monitoring - #26137

Open
damian-sh wants to merge 1 commit into
docker:mainfrom
damian-sh:fix/go-prometheus-guide-healthcheck
Open

damian-sh wants to merge 1 commit into
docker:mainfrom
damian-sh:fix/go-prometheus-guide-healthcheck

Conversation

@damian-sh

@damian-sh damian-sh commented Sep 20, 2026

Copy link
Copy Markdown

Description

In the Go + Prometheus + Grafana guide (content/guides/go-prometheus-monitoring.md), the sample API container failed its healthcheck and was reported as unhealthy.

This PR fixes the following inconsistencies:

  • Replaces curl with wget -qO- http://localhost:8000/health in both Docker Compose examples and the descriptive explanation. The final runtime image is based on alpine:3.17, which includes wget via BusyBox out of the box, whereas curl is not installed.
  • Consistently uses port 8000 (the port exposed by the Dockerfile and listened on by main.go), fixing a remaining reference to port 8080.

A corresponding pull request has also been submitted to the sample repository: dockersamples/go-prometheus-monitoring#1

Related issues or tickets

Fixes #26129

Reviews

  • Technical review
  • Editorial review

…oring

Update healthcheck command from curl to wget (available in Alpine) and use
port 8000 consistently, fixing unhealthy status in the sample guide.

Fixes docker#26129

Signed-off-by: damian-sh <harryadonay62@gmail.com>
@netlify

netlify Bot commented Sep 20, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit d032e32
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6ab05f032c006c00080a2bea
😎 Deploy Preview https://deploy-preview-26137--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Go Prometheus guide: healthcheck uses wrong port and lacks curl

1 participant