From 1f310468e7de0dc2fa0a88b1d8aede78f71a2376 Mon Sep 17 00:00:00 2001 From: Zsailer Date: Wed, 25 Sep 2019 15:25:45 -0700 Subject: [PATCH] remove reference to notebook in prometheus --- jupyter_server/prometheus/log_functions.py | 2 +- jupyter_server/services/kernels/kernelmanager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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):