Skip to content

Commit

Permalink
Include dynamic config for traces
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaciolek authored and perk-sumo committed Mar 26, 2020
1 parent f1557af commit 76dbfaf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions deploy/helm/sumologic/conf/traces/traces.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@
source_name_key_name '_sourceName'
collector_key_name '_collector'
collector_value "{{- if .Values.sumologic.collectorName }}{{ .Values.sumologic.collectorName }}{{- else}}{{ .Values.sumologic.clusterName }}{{- end}}"

source_name "#{ENV['SOURCE_NAME']}"
source_host "#{ENV['SOURCE_HOST']}"
log_format "#{ENV['LOG_FORMAT']}"
kubernetes_meta "#{ENV['KUBERNETES_META']}"
kubernetes_meta_reduce "#{ENV['KUBERNETES_META_REDUCE']}"
add_stream "#{ENV['ADD_STREAM']}"
add_time "#{ENV['ADD_TIME']}"
source_category "#{ENV['SOURCE_CATEGORY']}"
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
source_category_replace_dash "#{ENV['SOURCE_CATEGORY_REPLACE_DASH']}"
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
exclude_pod_regex "#{ENV['EXCLUDE_POD_REGEX']}"
exclude_container_regex "#{ENV['EXCLUDE_CONTAINER_REGEX']}"
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
</filter>
{{- if .Values.sumologic.traces.fluentd_stdout }}
<filter tracing.**>
Expand Down

0 comments on commit 76dbfaf

Please sign in to comment.