diff --git a/notebook/prometheus/log_functions.py b/notebook/prometheus/log_functions.py index 338b59d0d1..a67a252ade 100644 --- a/notebook/prometheus/log_functions.py +++ b/notebook/prometheus/log_functions.py @@ -1,4 +1,4 @@ -from notebook.prometheus.metrics import HTTP_REQUEST_DURATION_SECONDS +from ..prometheus.metrics import HTTP_REQUEST_DURATION_SECONDS def prometheus_log_method(handler): diff --git a/notebook/terminal/api_handlers.py b/notebook/terminal/api_handlers.py index b6f4df1554..54d3247577 100644 --- a/notebook/terminal/api_handlers.py +++ b/notebook/terminal/api_handlers.py @@ -1,7 +1,7 @@ import json from tornado import web, gen from ..base.handlers import APIHandler -from notebook.prometheus.metrics import TERMINAL_CURRENTLY_RUNNING_TOTAL +from ..prometheus.metrics import TERMINAL_CURRENTLY_RUNNING_TOTAL class TerminalRootHandler(APIHandler):