12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/gitlab/qa/scenario/test/integration/metrics.rb', line 12
def perform(release, *rspec_args)
Component::Gitlab.perform do |gitlab|
gitlab.release = release
gitlab.network = 'test'
gitlab.name = 'gitlab'
gitlab.ports = [PUMA_METRICS_SERVER_PORT, SIDEKIQ_METRICS_SERVER_PORT]
gitlab.omnibus_configuration << <<~RUBY
puma['exporter_enabled'] = true
puma['exporter_address'] = '0.0.0.0'
puma['exporter_port'] = #{PUMA_METRICS_SERVER_PORT}
sidekiq['metrics_enabled'] = true
sidekiq['listen_address'] = '0.0.0.0'
sidekiq['listen_port'] = #{SIDEKIQ_METRICS_SERVER_PORT}
RUBY
gitlab.instance do
Component::Specs.perform do |specs|
specs.suite = 'Test::Integration::Metrics'
specs.release = gitlab.release
specs.network = gitlab.network
specs.args = [gitlab.address, *rspec_args]
end
end
end
end
|