APM .NET Agent attribute decoration is not working in a containerized environment
search cancel

APM .NET Agent attribute decoration is not working in a containerized environment

book

Article ID: 276235

calendar_today

Updated On:

Products

CA Application Performance Management SaaS

Issue/Introduction

We have deployed .NET Core agent in Kubernetes container, below the main entries of the Dockerfile

As highlighted below the .NET Agent attribute decoration has been enabled as per documentation but it is not working. 

......

RUN mkdir -p /home/agent/wily
ADD DotNET_Linux_2023.6.1.5.tar.gz /home/agent/wily

COPY AttributeDecorationConfig.json /home/agent/wily/dotnetagent

ENV CORECLR_ENABLE_PROFILING=1 \
    CA_APM_MONITORING_ENABLED=true \
    CORECLR_PROFILER={5F048FC6-251C-4684-8CCA-76047B02AC98} \
    CORECLR_PROFILER_PATH_64=/home/agent/wily/dotnetagent/bin/wily.NativeProfiler.so \
    com.wily.introscope.AgentProfile=/home/agent/wily/dotnetagent/IntroscopeAgent.profile \
    agentManager.url.1=https://<your EM-hostname>:<your EM-port> \
    agentManager.credential= \
    introscope.agent.hostName=TEST \
    introscope.agent.log.level=DEBUG \
    introscope.agent.customProcessName=TEST_EDI_DEV \
    introscope.agent.agentName=DotNET_CaaS_TEST \
    agentManager.ssl.certPolicy=AcceptLogWarning
    attribute.decoration.load.configuration.from.properties=true \
    attribute.decoration.jsonfilename.configuration=AttributeDecorationConfig.json

...

 

 

Environment

APM SaaS

Cause

The problem is related to defect #DE577587

Resolution

This fix is part of APM Agent 23.10

Make sure to set the below 2 environment variables:

apmenv_attribute_decoration_load_configuration_from_properties=true \
apmenv_attribute_decoration_jsonfilename_configuration=/home/agent/wily/dotnetagent/AttributeDecorationConfig.json

Additional Information

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/dx-apm-agents/SaaS/microsoft-net-agent/configure-the-net-agent/Automatic-Attribute-Decoration-(-NET--NET-Core-Agent).html