Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add method to activate the split of the traffic through logstash #46

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@

proxy_services = proxy_services()

begin
split_traffic_logstash_db = data_bag_item('rBglobal', 'splittraffic')
split_traffic_logstash = split_traffic_logstash_db['logstash']
rescue
split_traffic_logstash = false
end

rb_common_config 'Configure common' do
action :configure
end
Expand Down Expand Up @@ -144,6 +151,7 @@

rb_exporter_config 'Configure rb-exporter' do
if proxy_services['redborder-exporter']
split_traffic_logstash split_traffic_logstash
action [:add]
else
action [:remove]
Expand Down
Loading