This page applies to an earlier version of the AppDynamics App IQ Platform.
For documentation on the latest version, see the 4.4 Documentation.

Related pages:

Your Rating:
54 rates

If you use the pyagent run command to instrument your application, the proxy component is automatically started when you start the agent. Use the command described here only if you need to launch the proxy manually, because your Python environment is uWSGI with Emperor or Apache with mod_wsgi.

When the proxy starts, nodes are not created immediately. A node is created when the agent first detects traffic on it.

Every time you reboot the server, you need to re-start the proxy if your setup requires that you start the proxy manually.

Directory Configuration Setting

The pyagent proxy start command needs to read the dir (APPD_DIR) configuration setting, which is the base directory for the AppDynamics Python Agent configuration. Make sure it is correctly set. The default is /tmp/appd/.

As with the agent itself, you can make this, as well as other, settings available to the proxy in any of the following ways:

  • setting the environment variable (APPD_DIR) manually.
  • setting the APPD_CONFIG_FILE environment variable to point to the configuration file and then setting the base directory in the configuration file. See Install the Python Agent.
  • passing in the path to the configuration file to the pyagent proxy command using -c ( —config-file ) option as illustrated below.

Start, Stop and Restart Options for the pyagent proxy

The start, restart and stop options are:

  • —debug (-d): starts the proxy in debugging mode
  • —no-watchdog: disables the proxy watchdog (not recommended)
  • —config-file (-c): path to the Python Agent configuration file

The restart command is new in 4.1.4.

Usage: pyagent proxy start|start|restart start_options  -- [jvmOption [jvmOption [...] ]
pyagent proxy start -c appdynamics.config -d
pyagent proxy restart -c appdynamics.config -d
pyagent proxy stop -c appdynamics.config