File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 15
15
from .server import PrometheusMetricsServer , start_metrics_server
16
16
17
17
__all__ = [
18
- "KERNEL_CURRENTLY_RUNNING_TOTAL" ,
18
+ "KERNEL_CURRENTLY_RUNNING_TOTAL" ,
19
19
"TERMINAL_CURRENTLY_RUNNING_TOTAL" ,
20
20
"SERVER_INFO" ,
21
21
"SERVER_EXTENSION_INFO" ,
Original file line number Diff line number Diff line change 26
26
import prometheus_client
27
27
import tornado .httpserver
28
28
import tornado .ioloop
29
- import prometheus_client
30
29
31
30
from jupyter_server ._version import __version__
32
31
from jupyter_server .base .handlers import PrometheusMetricsHandler
Original file line number Diff line number Diff line change @@ -3125,7 +3125,7 @@ def start_app(self) -> None:
3125
3125
if self .identity_provider .token and self .identity_provider .token_generated :
3126
3126
# log full URL with generated token, so there's a copy/pasteable link
3127
3127
# with auth info.
3128
-
3128
+
3129
3129
# Determine metrics URL based on whether separate metrics server is running
3130
3130
if self .metrics_port :
3131
3131
# Separate metrics server is running
@@ -3136,12 +3136,12 @@ def start_app(self) -> None:
3136
3136
else :
3137
3137
# Metrics are served on main server
3138
3138
# Use the connection_url as base and append /metrics
3139
- base_url = self .connection_url .rstrip ('/' )
3139
+ base_url = self .connection_url .rstrip ("/" )
3140
3140
if self .authenticate_prometheus :
3141
3141
metrics_url = f"{ base_url } /metrics?token={ self .identity_provider .token } "
3142
3142
else :
3143
3143
metrics_url = f"{ base_url } /metrics"
3144
-
3144
+
3145
3145
if self .sock :
3146
3146
self .log .critical (
3147
3147
"\n " .join (
You can’t perform that action at this time.
0 commit comments