diff --git a/jupyter_server/prometheus/log_functions.py b/jupyter_server/prometheus/log_functions.py index 338b59d0d1..548c5fd8d4 100644 --- a/jupyter_server/prometheus/log_functions.py +++ b/jupyter_server/prometheus/log_functions.py @@ -1,4 +1,4 @@ -from notebook.prometheus.metrics import HTTP_REQUEST_DURATION_SECONDS +from jupyter_server.prometheus.metrics import HTTP_REQUEST_DURATION_SECONDS def prometheus_log_method(handler): diff --git a/jupyter_server/services/kernels/kernelmanager.py b/jupyter_server/services/kernels/kernelmanager.py index 4d000e1698..ae2fd6a251 100644 --- a/jupyter_server/services/kernels/kernelmanager.py +++ b/jupyter_server/services/kernels/kernelmanager.py @@ -26,7 +26,7 @@ from jupyter_server._tz import utcnow, isoformat from ipython_genutils.py3compat import getcwd -from notebook.prometheus.metrics import KERNEL_CURRENTLY_RUNNING_TOTAL +from jupyter_server.prometheus.metrics import KERNEL_CURRENTLY_RUNNING_TOTAL class MappingKernelManager(MultiKernelManager):