Skip to content

Install additional pip dependencies in the agent env

Derek Brown edited this page Sep 26, 2017 · 2 revisions

If you wrote a custom check with a pip dependencies not included with the agent, this is the right place.

Warning: if the pip module you want to add has a requirement conflicting with the agent requirements, pip won't respect the agent requirements. For instance if the new module has a requirement requests>=2.10.0 whereas the agent is shipped with requests==2.9.0, pip install will also upgrade requests to the latest version, which may break the agent.

Unix systems

To check if the module is already there:

/opt/datadog-agent/embedded/bin/pip freeze | grep -i mymodule

To install it (version 1.2.3):

/opt/datadog-agent/embedded/bin/pip install mymodule==1.2.3

Windows

Only available for agent >= 5.12

To check if the module is already there:

"C:\Program Files\Datadog\Datadog Agent\embedded\python.exe" -m pip freeze | findstr /I "mymodule"

To install it (version 1.2.3):

"C:\Program Files\Datadog\Datadog Agent\embedded\python.exe" -m pip install mymodule==1.2.3
Clone this wiki locally