Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
05373c24
Commit
05373c24
authored
Jan 22, 2018
by
Pawel Chojnacki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong histograam buckets
parent
1c403459
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/metrics/subscribers/action_view.rb
lib/gitlab/metrics/subscribers/action_view.rb
+1
-1
lib/gitlab/metrics/subscribers/active_record.rb
lib/gitlab/metrics/subscribers/active_record.rb
+1
-1
No files found.
lib/gitlab/metrics/subscribers/action_view.rb
View file @
05373c24
...
...
@@ -7,7 +7,7 @@ module Gitlab
define_histogram
:gitlab_view_rendering_duration_seconds
do
docstring
'View rendering time'
base_labels
Transaction
::
BASE_LABELS
.
merge
({
path:
nil
})
buckets
[
0.001
,
0.01
,
0.1
,
10.0
]
buckets
[
0.001
,
0.01
,
0.1
,
1
,
1
0.0
]
with_feature
:prometheus_metrics_view_instrumentation
end
...
...
lib/gitlab/metrics/subscribers/active_record.rb
View file @
05373c24
...
...
@@ -20,7 +20,7 @@ module Gitlab
define_histogram
:gitlab_sql_duration_seconds
do
docstring
'SQL time'
base_labels
Transaction
::
BASE_LABELS
buckets
[
0.001
,
0.01
,
0.1
,
10.0
]
buckets
[
0.001
,
0.01
,
0.1
,
1
.0
,
1
0.0
]
end
def
current_transaction
...
...
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