Skip to content

Commit de13203

Browse files
committed
Fixup docstrings
1 parent 7bad762 commit de13203

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

notebook/metrics.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
Prometheus metrics exported by Jupyter Notebook Server
33
44
Read https://prometheus.io/docs/practices/naming/ for naming
5-
conventions for metrics & labels. We generally prefer naming them
6-
`<noun>_<verb>_<type_suffix>`. So a histogram that's tracking
7-
the duration (in seconds) of servers spawning would be called
8-
SERVER_SPAWN_DURATION_SECONDS.
5+
conventions for metrics & labels.
96
"""
107

118
from prometheus_client import Histogram
129

10+
# This is a fairly standard name for HTTP request latency reporting.
1311
REQUEST_DURATION_SECONDS = Histogram(
1412
'request_duration_seconds',
1513
'request duration for all HTTP requests',

0 commit comments

Comments
 (0)