-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gangams/aad stage2 full switch to mdsd (#559)
* full switch to mdsd, upgrade to ruby v1 & omsagent removal * add odsdirect as fallback option * cleanup * cleanup * move customRegion to stage3 * updates related to containerlog route * make xml eventschema consistent * add buffer settings * address HTTPServerException deprecation in ruby 2.6 * update to official mdsd version * fix log message issue * fix pr feedback * get ridoff unused code from omscommon * fix pr feedback * fix pr feedback * clean up * clean up * fix missing conf
- Loading branch information
Showing
49 changed files
with
2,821 additions
and
2,176 deletions.
There are no files selected for viewing
This file contains 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 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 | ||
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**> | ||
@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 | ||
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.