mongodb_exporter
mongodb_exporter copied to clipboard
Health check for Docker container
Hello,
it would be nice to have ### curl installed in this image to have a health check for docker.
Regards, Andy
I wonder if we just could add it as option to mongodb_exporter itself. To not add additional binaries/layers to the container we could leverage libs that we already have inside the exporter and just check connection by simple http request, or implement some other way of health checking (rpc connection, signal, whatever).
k8s has external livenessProbe/readinessProbe which looks better and doesn't require additional func.
The health check in docker must be a command inside the container. Any liveniss command with a return of 0 or 1 would be perfect.
yep, like mongodb_exporter --isalive
or something like that ) so that would be one binary in a container