Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion installer/conf/td-agent-bit.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
EnableTelemetry true
TelemetryPushIntervalSeconds 300
Match oms.container.log.*
AgentVersion ciprod10162018-2
AgentVersion internaltest1126
5 changes: 5 additions & 0 deletions source/code/plugin/in_containerinventory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ def obtainContainerConfig(instance, container)

envValue = configValue['Env']
envValueString = (envValue.nil?) ? "" : envValue.to_s
# Skip environment variable processing if it contains the flag AZMON_COLLECT_ENV=FALSE
if /AZMON_COLLECT_ENV=FALSE/i.match(envValueString)
envValueString = ["AZMON_COLLECT_ENV=FALSE"]
$log.warn("Environment Variable collection for container: #{container['Id']} skipped because AZMON_COLLECT_ENV is set to false")
end
# Restricting the ENV string value to 200kb since the size of this string can go very high
if envValueString.length > 200000
envValueStringTruncated = envValueString.slice(0..200000)
Expand Down