-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Watchdog: introduce endpoints for health and metrics #547
Comments
I can start looking this if it is not urgent. |
Adding the Prometheus client will bring the watchdog binary size to 6MB |
Thanks for commenting. The current size is around 3.92MB - so adding instrumentation almost doubles the size of the binary. |
@alexellis for |
Great question.. Can you check what Kubernetes expects to fail a health-check? (liveness probe)https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#define-a-liveness-http-request |
Anything greater than |
Sounds good to me |
Introduce new endpoint `/_/health` to watchdog for health status of functions which check for `/tmp/.lock` file Fixes first part of openfaas#547 issue. Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
Introduce new endpoint `/_/health` to watchdog for health status of functions which checks for `/tmp/.lock` file Issues: openfaas/faas#547 Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
Introduce new endpoint `/_/health` to watchdog for health status of functions which check for `/tmp/.lock` file Fixes first part of openfaas#547 issue. Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
Introduce new endpoint `/_/health` to watchdog for health status of functions which check for `/tmp/.lock` file Fixes first part of #547 issue. Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
Introduce new endpoint `/_/health` to watchdog for health status of functions which checks for `/tmp/.lock` file Added tests for healthHandler Issues: openfaas/faas#547 Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
Introduce new endpoint `/_/health` to watchdog for health status of functions which checks for `/tmp/.lock` file Added tests for healthHandler Issues: openfaas/faas#547 Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
Introduce new endpoint `/_/health` to watchdog for health status of functions which checks for `/tmp/.lock` file Added tests for healthHandler Issues: openfaas/faas#547 Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
Introduce new endpoint `/_/health` to watchdog for health status of functions which checks for `/tmp/.lock` file Added tests for healthHandler Issues: openfaas/faas#547 Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
Dumb question, but what is the difference betweek HEALTHCHECK Dockerfile and the /_/health endpoint ? They returns the same information. OpenFaaS cannot read the docker service HEALTHCHECK status ? |
I have done this work now |
Update the OpenFaaS Watchdog to introduce two new endpoints:
This should check for the lock file at
/tmp/.lock
- use the existing behavior for this.Vendor Prometheus go library and expose:
Add a Prometheus counter:
This counter should represent the requests/second.
Once complete - make equivalent change to the of-watchdog here:
https://github.com/openfaas-incubator/of-watchdog
Worries / other concerns
The text was updated successfully, but these errors were encountered: