-
Notifications
You must be signed in to change notification settings - Fork 115
Gangams/aad stage2 full switch to mdsd #559
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
df13606
full switch to mdsd, upgrade to ruby v1 & omsagent removal
ganga1980 9edf933
add odsdirect as fallback option
ganga1980 bbecc2c
cleanup
ganga1980 836331a
cleanup
ganga1980 0178310
move customRegion to stage3
ganga1980 f29ec25
updates related to containerlog route
ganga1980 f3fbf3c
make xml eventschema consistent
ganga1980 673807f
add buffer settings
ganga1980 877ae9e
address HTTPServerException deprecation in ruby 2.6
ganga1980 90e9eeb
update to official mdsd version
ganga1980 7ecdbab
fix log message issue
ganga1980 5cd47d7
fix pr feedback
ganga1980 a4dff09
get ridoff unused code from omscommon
ganga1980 2c8afa4
fix pr feedback
ganga1980 7b94989
fix pr feedback
ganga1980 1e148d1
merge ci_dev latest changes
ganga1980 b2fb9d8
clean up
ganga1980 a1c7658
clean up
ganga1980 df4898a
Merge branch 'ci_dev' into gangams/aad-stage2-full-switch-to-mdsd
ganga1980 d1de167
fix missing conf
ganga1980 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,141 +1,179 @@ | ||
| # Fluentd config file for OMS Docker - container components (non kubeAPI) | ||
|
|
||
| # Forward port 25225 for container logs | ||
| <source> | ||
| type forward | ||
| port 25225 | ||
| bind 127.0.0.1 | ||
| </source> | ||
|
|
||
| # MDM metrics from telegraf | ||
| <source> | ||
| @type tcp | ||
| tag oms.mdm.container.perf.telegraf.* | ||
| bind 0.0.0.0 | ||
| port 25228 | ||
| format json | ||
| </source> | ||
|
|
||
| # Container inventory | ||
| <source> | ||
| type containerinventory | ||
| tag oms.containerinsights.containerinventory | ||
| run_interval 60 | ||
| log_level debug | ||
| </source> | ||
|
|
||
| #cadvisor perf | ||
| <source> | ||
| type cadvisorperf | ||
| tag oms.api.cadvisorperf | ||
| run_interval 60 | ||
| log_level debug | ||
| </source> | ||
|
|
||
| <filter kubehealth.DaemonSet.Node**> | ||
| type filter_cadvisor_health_node | ||
| log_level debug | ||
| </filter> | ||
|
|
||
| <filter kubehealth.DaemonSet.Container**> | ||
| type filter_cadvisor_health_container | ||
| log_level debug | ||
| </filter> | ||
|
|
||
| #custom_metrics_mdm filter plugin | ||
| <filter mdm.cadvisorperf**> | ||
| type filter_cadvisor2mdm | ||
| metrics_to_collect cpuUsageNanoCores,memoryWorkingSetBytes,memoryRssBytes,pvUsedBytes | ||
| log_level info | ||
| </filter> | ||
|
|
||
| <filter oms.mdm.container.perf.telegraf**> | ||
| type filter_telegraf2mdm | ||
| log_level debug | ||
| </filter> | ||
|
|
||
| <match oms.containerinsights.containerinventory**> | ||
| type out_oms | ||
| log_level debug | ||
| num_threads 5 | ||
| buffer_type file | ||
| buffer_path %STATE_DIR_WS%/out_oms_containerinventory*.buffer | ||
| buffer_queue_full_action drop_oldest_chunk | ||
| buffer_chunk_limit 4m | ||
| flush_interval 20s | ||
| retry_limit 10 | ||
| retry_wait 5s | ||
| max_retry_wait 5m | ||
| </match> | ||
|
|
||
| <match oms.api.cadvisorperf**> | ||
| type out_oms | ||
| log_level debug | ||
| num_threads 5 | ||
| buffer_type file | ||
| buffer_path %STATE_DIR_WS%/out_oms_cadvisorperf*.buffer | ||
| buffer_queue_full_action drop_oldest_chunk | ||
| buffer_chunk_limit 4m | ||
| flush_interval 20s | ||
| retry_limit 10 | ||
| retry_wait 5s | ||
| max_retry_wait 5m | ||
| </match> | ||
|
|
||
|
|
||
| <match kubehealth.DaemonSet**> | ||
| @type health_forward | ||
| send_timeout 60s | ||
| recover_wait 10s | ||
| hard_timeout 60s | ||
| heartbeat_type tcp | ||
| skip_network_error_at_init true | ||
| expire_dns_cache 600s | ||
| buffer_queue_full_action drop_oldest_chunk | ||
| buffer_type file | ||
| buffer_path %STATE_DIR_WS%/out_health_forward*.buffer | ||
| buffer_chunk_limit 3m | ||
| flush_interval 20s | ||
| retry_limit 10 | ||
| retry_wait 5s | ||
| max_retry_wait 5m | ||
|
|
||
| <server> | ||
| host "#{ENV['HEALTHMODEL_REPLICASET_SERVICE_SERVICE_HOST']}" | ||
| port "#{ENV['HEALTHMODEL_REPLICASET_SERVICE_SERVICE_PORT']}" | ||
| </server> | ||
|
|
||
| <secondary> | ||
| # Fluentd config file for OMS Docker - container components (non kubeAPI) | ||
|
|
||
| # Forward port 25225 for container logs | ||
| # gangams - not used and get ridoff after confirming safe to remove | ||
| <source> | ||
| @type forward | ||
| port 25225 | ||
| bind 127.0.0.1 | ||
| </source> | ||
|
|
||
| # MDM metrics from telegraf | ||
| <source> | ||
| @type tcp | ||
| tag oms.mdm.container.perf.telegraf.* | ||
| bind 0.0.0.0 | ||
| port 25228 | ||
| format json | ||
| </source> | ||
|
|
||
| # Container inventory | ||
| <source> | ||
| @type containerinventory | ||
| tag oneagent.containerInsights.CONTAINER_INVENTORY_BLOB | ||
| run_interval 60 | ||
| @log_level debug | ||
| </source> | ||
|
|
||
| #cadvisor perf | ||
| <source> | ||
| @type cadvisor_perf | ||
| tag oneagent.containerInsights.LINUX_PERF_BLOB | ||
ganga1980 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| run_interval 60 | ||
| @log_level debug | ||
| </source> | ||
|
|
||
| <filter kubehealth.DaemonSet.Node**> | ||
| @type cadvisor_health_node | ||
| @log_level debug | ||
| </filter> | ||
|
|
||
| <filter kubehealth.DaemonSet.Container**> | ||
| @type cadvisor_health_container | ||
| @log_level debug | ||
| </filter> | ||
|
|
||
| #custom_metrics_mdm filter plugin | ||
| <filter mdm.cadvisorperf**> | ||
| @type cadvisor2mdm | ||
| metrics_to_collect cpuUsageNanoCores,memoryWorkingSetBytes,memoryRssBytes,pvUsedBytes | ||
| @log_level info | ||
| </filter> | ||
|
|
||
| <filter oms.mdm.container.perf.telegraf**> | ||
| @type telegraf2mdm | ||
| @log_level debug | ||
| </filter> | ||
|
|
||
| #containerinventory | ||
| <match **CONTAINER_INVENTORY_BLOB**> | ||
| @type forward | ||
| @log_level debug | ||
| send_timeout 30 | ||
| connect_timeout 30 | ||
| heartbeat_type none | ||
| <server> | ||
| host 0.0.0.0 | ||
| port "#{ENV['MDSD_FLUENT_SOCKET_PORT']}" | ||
| </server> | ||
| <buffer> | ||
| @type file | ||
| path %STATE_DIR_WS%/fluent_forward_failed.buffer | ||
| </secondary> | ||
| </match> | ||
|
|
||
| <match mdm.cadvisorperf** oms.mdm.container.perf.telegraf**> | ||
| type out_mdm | ||
| log_level debug | ||
| num_threads 5 | ||
| buffer_type file | ||
| buffer_path %STATE_DIR_WS%/out_mdm_cdvisorperf*.buffer | ||
| buffer_queue_full_action drop_oldest_chunk | ||
| buffer_chunk_limit 4m | ||
| flush_interval 20s | ||
| retry_limit 10 | ||
| retry_wait 5s | ||
| max_retry_wait 5m | ||
| retry_mdm_post_wait_minutes 30 | ||
| </match> | ||
|
|
||
| <match oms.api.InsightsMetrics**> | ||
| type out_oms | ||
| log_level debug | ||
| num_threads 5 | ||
| buffer_type file | ||
| buffer_path %STATE_DIR_WS%/out_oms_insightsmetrics*.buffer | ||
| buffer_queue_full_action drop_oldest_chunk | ||
| buffer_chunk_limit 4m | ||
| flush_interval 20s | ||
| retry_limit 10 | ||
| retry_wait 5s | ||
| max_retry_wait 5m | ||
| </match> | ||
| path /var/opt/microsoft/docker-cimprov/state/containerinventory*.buffer | ||
| overflow_action drop_oldest_chunk | ||
| chunk_limit_size 4m | ||
| queue_limit_length 20 | ||
| flush_interval 20s | ||
| retry_max_times 10 | ||
| retry_wait 5s | ||
| retry_max_interval 5m | ||
| flush_thread_count 5 | ||
| </buffer> | ||
| keepalive true | ||
| </match> | ||
|
|
||
| #cadvisorperf | ||
| <match **LINUX_PERF_BLOB**> | ||
ganga1980 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| @type forward | ||
| @log_level debug | ||
| send_timeout 30 | ||
| connect_timeout 30 | ||
| heartbeat_type none | ||
| <server> | ||
| host 0.0.0.0 | ||
| port "#{ENV['MDSD_FLUENT_SOCKET_PORT']}" | ||
| </server> | ||
| <buffer> | ||
| @type file | ||
| path /var/opt/microsoft/docker-cimprov/state/cadvisorperf*.buffer | ||
| overflow_action drop_oldest_chunk | ||
| chunk_limit_size 4m | ||
| queue_limit_length 20 | ||
| flush_interval 20s | ||
| retry_max_times 10 | ||
| retry_wait 5s | ||
| retry_max_interval 5m | ||
| flush_thread_count 5 | ||
| </buffer> | ||
| keepalive true | ||
| </match> | ||
|
|
||
| <match kubehealth.DaemonSet**> | ||
| @type health_forward | ||
ganga1980 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| send_timeout 60s | ||
| recover_wait 10s | ||
| hard_timeout 60s | ||
| transport tcp | ||
| ignore_network_errors_at_startup true | ||
| expire_dns_cache 600s | ||
| <buffer> | ||
| @type file | ||
| overflow_action drop_oldest_chunk | ||
| path /var/opt/microsoft/docker-cimprov/state/out_health_forward*.buffer | ||
| chunk_limit_size 3m | ||
| flush_interval 20s | ||
| retry_max_times 10 | ||
| retry_max_interval 5m | ||
| retry_wait 5s | ||
| </buffer> | ||
| <server> | ||
| host "#{ENV['HEALTHMODEL_REPLICASET_SERVICE_SERVICE_HOST']}" | ||
| port "#{ENV['HEALTHMODEL_REPLICASET_SERVICE_SERVICE_PORT']}" | ||
| </server> | ||
| <secondary> | ||
| @type file | ||
| path /var/opt/microsoft/docker-cimprov/state/fluent_forward_failed.buffer | ||
| </secondary> | ||
| </match> | ||
|
|
||
| <match mdm.cadvisorperf** oms.mdm.container.perf.telegraf**> | ||
| @type mdm | ||
| @log_level debug | ||
| <buffer> | ||
| @type file | ||
| path /var/opt/microsoft/docker-cimprov/state/out_mdm_cdvisorperf*.buffer | ||
| overflow_action drop_oldest_chunk | ||
| chunk_limit_size 4m | ||
| flush_interval 20s | ||
| retry_max_times 10 | ||
| retry_wait 5s | ||
| retry_max_interval 5m | ||
| flush_thread_count 5 | ||
| </buffer> | ||
| retry_mdm_post_wait_minutes 30 | ||
| </match> | ||
|
|
||
| #InsightsMetrics | ||
| <match **INSIGHTS_METRICS_BLOB**> | ||
| @type forward | ||
| @log_level debug | ||
| send_timeout 30 | ||
| connect_timeout 30 | ||
| heartbeat_type none | ||
| <server> | ||
| host 0.0.0.0 | ||
| port "#{ENV['MDSD_FLUENT_SOCKET_PORT']}" | ||
| </server> | ||
| <buffer> | ||
| @type file | ||
| path /var/opt/microsoft/docker-cimprov/state/insightsmetrics*.buffer | ||
| overflow_action drop_oldest_chunk | ||
| chunk_limit_size 4m | ||
| queue_limit_length 20 | ||
| flush_interval 20s | ||
| retry_max_times 10 | ||
| retry_wait 5s | ||
| retry_max_interval 5m | ||
| flush_thread_count 5 | ||
| </buffer> | ||
| keepalive true | ||
| </match> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.