Currently, the containerized deployment works very easily but the container engine has no knowledge about the health of the instance.
For Docker the following concept applies: https://docs.docker.com/reference/dockerfile/#healthcheck
This can be reused for k8s of course: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
For this simple purpose, I would recommend having a simple /health endpoint that returns only 200 if the exporter runs successfully.
Currently, the containerized deployment works very easily but the container engine has no knowledge about the health of the instance.
For Docker the following concept applies: https://docs.docker.com/reference/dockerfile/#healthcheck
This can be reused for k8s of course: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
For this simple purpose, I would recommend having a simple
/healthendpoint that returns only 200 if the exporter runs successfully.