Skip to content
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

Add simple health check #37

Merged
merged 2 commits into from
Aug 27, 2018
Merged

Conversation

marctc
Copy link
Contributor

@marctc marctc commented Aug 27, 2018

Useful to check health status of a running container using a livenessProbe in a Kubernetes Pod.

Useful to check health status of a running container using a `livenessProbe` in a
Kubernetes Pod.
@@ -193,6 +193,9 @@ func main() {
</body>
</html>`))
})

http.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rename the path to /-/healthy to be consistent with prometheus and official exporters?

@discordianfish
Copy link
Owner

Thanks @marctc, that addition makes sense. Just this minor change.

@discordianfish discordianfish merged commit 4ce558e into discordianfish:master Aug 27, 2018
@discordianfish
Copy link
Owner

Great, thanks!

@marctc
Copy link
Contributor Author

marctc commented Aug 27, 2018

Awesome, thanks!

@marctc
Copy link
Contributor Author

marctc commented Aug 29, 2018

@discordianfish will you publish a new release with this change?

@discordianfish
Copy link
Owner

@marctc Just releases 0.1.1. Should be available in a few minutes: https://hub.docker.com/r/fish/nginx-exporter/builds/b3nhs7ujyc2k6o3ruf8wa8m/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants