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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
93c0a168
Commit
93c0a168
authored
Feb 20, 2018
by
Pawel Chojnacki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put all event metrics exposed to prometheus behind a feature flag
parent
efdde042
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
lib/gitlab/metrics/transaction.rb
lib/gitlab/metrics/transaction.rb
+1
-0
No files found.
lib/gitlab/metrics/transaction.rb
View file @
93c0a168
...
@@ -155,6 +155,7 @@ module Gitlab
...
@@ -155,6 +155,7 @@ module Gitlab
fetch_metric
(
type
,
metric_name
)
do
fetch_metric
(
type
,
metric_name
)
do
docstring
"Transaction
#{
prefix
}#{
name
}
#{
type
}
"
docstring
"Transaction
#{
prefix
}#{
name
}
#{
type
}
"
base_labels
tags
.
merge
(
BASE_LABELS
)
base_labels
tags
.
merge
(
BASE_LABELS
)
with_feature
"prometheus_transaction_
#{
prefix
}#{
name
}
_total"
.
to_sym
if
type
==
:gauge
if
type
==
:gauge
multiprocess_mode
:livesum
multiprocess_mode
:livesum
...
...
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