Describe what happened:
I've configured the directory integration as a cluster check to monitor some directories. To achieve this I've mounted the directories to the agents, and passed the config to the cluster agent.
This is working fine, but the env tag is coming through as N/A despite the DD_ENV variable being configured on both the agent and clusterAgent.
I tried to work around this by adding it to the instances in the directory.yaml config like so:
Output of the info page (if this is a bug)
Describe what happened: I've configured the directory integration as a cluster check to monitor some directories. To achieve this I've mounted the directories to the agents, and passed the config to the cluster agent.
This is working fine, but the
env
tag is coming through asN/A
despite theDD_ENV
variable being configured on both theagent
andclusterAgent
.I tried to work around this by adding it to the instances in the directory.yaml config like so:
However this then came through as
map_env: stage
rather thanenv: stage
Describe what you expected: I expected the
DD_ENV
configuration to be respected and applied to all metrics emitted by that deployment.Running
agent configcheck
I see:Additional environment details (Operating System, Cloud provider, etc):