Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
prometheus
Commits
ad340e20af2b
Commit
ad340e20
authored
Jun 25, 2021
by
Arthur Lutz
Browse files
[views] fix typo in dictionnary access
Fixes
#5
parent
40d6dbfdb434
Pipeline
#64348
waiting for manual action with stages
in 1 minute and 27 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
cubicweb_prometheus/views.py
View file @
ad340e20
...
...
@@ -134,7 +134,7 @@
if
"time_routes"
in
PD_METRICS
:
PD_METRICS
[
"time_routes"
].
labels
(
route_name
).
inc
(
duration
)
if
"slow_routes"
in
PD_METRICS
and
duration
>
SLOW_REQUEST_THRESHOLD
:
PD_METRICS
[
"slow_route"
].
labels
(
route_name
).
inc
()
PD_METRICS
[
"slow_route
s
"
].
labels
(
route_name
).
inc
()
if
"http_requests"
in
PD_METRICS
:
PD_METRICS
[
"http_requests"
].
labels
(
method
=
request
.
method
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment