-
Notifications
You must be signed in to change notification settings - Fork 3
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
Replace probe endpoint #13
Replace probe endpoint #13
Conversation
Not sure why this happens with nagios_plugins_egi_notebooks/status.py:5:0: E0401: Unable to import 'requests' (import-error)
nagios_plugins_egi_notebooks/status.py:6:0: E0401: Unable to import 'requests.exceptions' (import-error) |
pylint is super picky about everything and I have disabled in other repos :( |
There are some things to consider here before moving towards this change:
We may want to go for a more generic testing, avoiding the spawning of the server and checking its status and avoiding going for the internal metrics with Another option is to use the hub API to actually trigger the spawning of a notebook server which is even closer to the user behaviour. |
Great feedback, many thanks! I found the below examples to start/stop servers with the JupyterHub API:
First question, which |
There is an implementation already of starting/stopping a server On the user, we should use the one that ARGO uses, although we are not yet fully ready to use Check-in token as authentication (but will soon, see EGI-Federation/egi-notebooks-hub#119). With that one in place we can move the logic to nagios and simplify the deployment of notebooks. |
I propose to close this one and keep track of the improvement with this issue #14. |
Sure, many thanks! |
Summary
I would like to replace the current check to
https://<url>/services/status/
withhttps://<url>/hub/metrics
See: https://jupyterhub.readthedocs.io/en/3.1.1/reference/monitoring.html
It has been tested with:
Related issue :