How to add a custom python package to the agent: Windows and Linux instructions

Linux

The python version embedded with the agent is located here: /opt/datadog-agent/embedded/bin/python.
The agent also comes with pip, and you can install python libraries using sudo /opt/datadog-agent/embedded/bin/pip install <package_name>​.

Windows

Custom python packages can be installed using the Agent's embedded Python using the following command in Powershell:

C:\"Program Files"\Datadog\"Datadog Agent"\embedded\python -m install <package_name>

Or the package can be added in the library zipped folder that can be found at C:\Program Files (x86)\Datadog\Datadog Agent\files, and restart the agent.

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk