Commit 9b7d0942 authored by Mike Greiling's avatar Mike Greiling

Merge branch '5511-rename-custom-metric-section-headers' into 'master'

Align custom metric section header naming

Closes #5511

See merge request gitlab-org/gitlab-ee!5175
parents 7db8f19f bde04ddf
......@@ -9,9 +9,9 @@ class PrometheusMetric < ActiveRecord::Base
validates :unit, presence: true
GROUP_TITLES = {
business: _('Business'),
response: _('Response'),
system: _('System')
business: _('Business metrics (Custom)'),
response: _('Response metrics (Custom)'),
system: _('System metrics (Custom)')
}.freeze
def group_title
......
......@@ -17,9 +17,9 @@ describe PrometheusMetric do
end
end
it_behaves_like 'group_title', :business, 'Business'
it_behaves_like 'group_title', :response, 'Response'
it_behaves_like 'group_title', :system, 'System'
it_behaves_like 'group_title', :business, 'Business metrics (Custom)'
it_behaves_like 'group_title', :response, 'Response metrics (Custom)'
it_behaves_like 'group_title', :system, 'System metrics (Custom)'
end
describe '#to_query_metric' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment