Agent version
7.78.x and earlier
Bug Report
Settings whose default is a non-string slice ([]int, []uint16, …) cannot be populated through env vars. The variable is read, but decoding doesn't happen as expected.
As a side note, there is some misleading documentation, such as this, which incorrectly suggests otherwise.
Reproduction Steps
Let's take this system probe config: network_config.dns_monitoring_ports (defaults to []int{53}).
Try to override the default with this environment variable: DD_NETWORK_CONFIG_DNS_MONITORING_PORTS="53 5353".
The expected configuration outcome is []int{53, 5353}, but the actual outcome is the string "53 5353" as is. Neither a comma nor a space as a separator works. A single value does work.
Agent configuration
No response
Operating System
No response
Other environment details
No response
Agent version
7.78.x and earlier
Bug Report
Settings whose default is a non-string slice ([]int, []uint16, …) cannot be populated through env vars. The variable is read, but decoding doesn't happen as expected.
As a side note, there is some misleading documentation, such as this, which incorrectly suggests otherwise.
Reproduction Steps
Let's take this system probe config: network_config.dns_monitoring_ports (defaults to []int{53}).
Try to override the default with this environment variable:
DD_NETWORK_CONFIG_DNS_MONITORING_PORTS="53 5353".The expected configuration outcome is
[]int{53, 5353}, but the actual outcome is the string"53 5353"as is. Neither a comma nor a space as a separator works. A single value does work.Agent configuration
No response
Operating System
No response
Other environment details
No response