Skip to content

Commit c516bbf

Browse files
balasankarcSylvester Chin
andcommitted
Merge branch 'sc1-enable-gitlab-exporter-sk-probe-dual-namespace' into 'master'
Enable dual namespace polling for sidekiq probe in gitlab-exporter See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7141 Merged-by: Balasankar 'Balu' C <[email protected]> Approved-by: Andrew Patterson <[email protected]> Reviewed-by: Balasankar 'Balu' C <[email protected]> Co-authored-by: Sylvester Chin <[email protected]>
2 parents 3c9efbb + 6ddfb82 commit c516bbf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

files/gitlab-cookbooks/monitoring/templates/gitlab-exporter.yml.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ probes:
5656
opts:
5757
redis_url: "<%= @redis_url %>"
5858
redis_enable_client: <%= @redis_enable_client %>
59+
probe_non_namespaced: true
60+
probe_namespaced: true
5961
<% end %>
6062

6163
<% if @probe_elasticsearch && @elasticsearch_url %>

spec/chef/cookbooks/monitoring/recipes/gitlab-exporter_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@
5858
expect(settings.dig('server', 'name')).to eq('webrick')
5959
expect(settings.dig('probes', 'database')).not_to be_nil
6060
expect(settings.dig('probes', 'ruby')).not_to be_nil
61+
expect(settings.dig('probes', 'sidekiq')).not_to be_nil
6162
expect(settings.dig('probes', 'metrics', 'rows_count')).not_to be_nil
63+
expect(settings.dig('probes', 'sidekiq', 'opts', 'probe_namespaced')).to be_truthy
64+
expect(settings.dig('probes', 'sidekiq', 'opts', 'probe_non_namespaced')).to be_truthy
6265
expect(settings['server']).not_to include('tls_enabled')
6366

6467
expect(content).to match(/host=\/var\/opt\/gitlab\/postgresql/)

0 commit comments

Comments
 (0)