|
97 | 97 | @ignoreProxySettings = false
|
98 | 98 |
|
99 | 99 | @multiline_enabled = "false"
|
100 |
| -@resource_optimization_enabled = false |
101 |
| -@windows_fluent_bit_disabled = true |
102 | 100 |
|
103 | 101 | @waittime_port_25226 = 45
|
104 | 102 | @waittime_port_25228 = 120
|
@@ -373,32 +371,6 @@ def populateSettingValuesFromConfigMap(parsedConfig)
|
373 | 371 | puts "Using config map value: AZMON_MULTILINE_ENABLED = #{@multiline_enabled}"
|
374 | 372 | end
|
375 | 373 |
|
376 |
| - if !@controllerType.nil? && !@controllerType.empty? && @controllerType.strip.casecmp(@daemonset) == 0 && @containerType.nil? |
377 |
| - resource_optimization_config = parsedConfig[:agent_settings][:resource_optimization] |
378 |
| - if !resource_optimization_config.nil? |
379 |
| - resource_optimization_enabled = resource_optimization_config[:enabled] |
380 |
| - if !resource_optimization_enabled.nil? && (!!resource_optimization_enabled == resource_optimization_enabled) #Checking for Boolean type, since 'Boolean' is not defined as a type in ruby |
381 |
| - @resource_optimization_enabled = resource_optimization_enabled |
382 |
| - end |
383 |
| - puts "Using config map value: AZMON_RESOURCE_OPTIMIZATION_ENABLED = #{@resource_optimization_enabled}" |
384 |
| - end |
385 |
| - end |
386 |
| - |
387 |
| - enable_custom_metrics = ENV["ENABLE_CUSTOM_METRICS"] |
388 |
| - if !enable_custom_metrics.nil? && enable_custom_metrics.to_s.downcase == "true" |
389 |
| - @resource_optimization_enabled = false |
390 |
| - puts "Resource Optimization disabled since custom metrics is enabled" |
391 |
| - end |
392 |
| - |
393 |
| - windows_fluent_bit_config = parsedConfig[:agent_settings][:windows_fluent_bit] |
394 |
| - if !windows_fluent_bit_config.nil? |
395 |
| - windows_fluent_bit_disabled = windows_fluent_bit_config[:disabled] |
396 |
| - if !windows_fluent_bit_disabled.nil? && windows_fluent_bit_disabled.to_s.downcase == "false" |
397 |
| - @windows_fluent_bit_disabled = false |
398 |
| - end |
399 |
| - puts "Using config map value: AZMON_WINDOWS_FLUENT_BIT_DISABLED = #{@windows_fluent_bit_disabled}" |
400 |
| - end |
401 |
| - |
402 | 374 | network_listener_waittime_config = parsedConfig[:agent_settings][:network_listener_waittime]
|
403 | 375 | if !network_listener_waittime_config.nil?
|
404 | 376 | waittime = network_listener_waittime_config[:tcp_port_25226]
|
@@ -549,12 +521,6 @@ def populateSettingValuesFromConfigMap(parsedConfig)
|
549 | 521 | file.write("export AZMON_MULTILINE_ENABLED=#{@multiline_enabled}\n")
|
550 | 522 | end
|
551 | 523 |
|
552 |
| - file.write("export AZMON_RESOURCE_OPTIMIZATION_ENABLED=#{@resource_optimization_enabled}\n") |
553 |
| - |
554 |
| - if !@windows_fluent_bit_disabled |
555 |
| - file.write("export AZMON_WINDOWS_FLUENT_BIT_DISABLED=#{@windows_fluent_bit_disabled}\n") |
556 |
| - end |
557 |
| - |
558 | 524 | file.write("export WAITTIME_PORT_25226=#{@waittime_port_25226}\n")
|
559 | 525 | file.write("export WAITTIME_PORT_25228=#{@waittime_port_25228}\n")
|
560 | 526 | file.write("export WAITTIME_PORT_25229=#{@waittime_port_25229}\n")
|
@@ -659,15 +625,6 @@ def get_command_windows(env_variable_name, env_variable_value)
|
659 | 625 | commands = get_command_windows("AZMON_MULTILINE_ENABLED", @multiline_enabled)
|
660 | 626 | file.write(commands)
|
661 | 627 | end
|
662 |
| - if @resource_optimization_enabled |
663 |
| - commands = get_command_windows("AZMON_RESOURCE_OPTIMIZATION_ENABLED", @resource_optimization_enabled) |
664 |
| - file.write(commands) |
665 |
| - end |
666 |
| - |
667 |
| - if !@windows_fluent_bit_disabled |
668 |
| - commands = get_command_windows("AZMON_WINDOWS_FLUENT_BIT_DISABLED", @windows_fluent_bit_disabled) |
669 |
| - file.write(commands) |
670 |
| - end |
671 | 628 |
|
672 | 629 | commands = get_command_windows("WAITTIME_PORT_25229", @waittime_port_25229)
|
673 | 630 | file.write(commands)
|
|
0 commit comments