cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Dynamic Languages (Node.JS, Python, PHP, C/C++, Webserver Agent)

How to install a python agent when using a gunicorn base application?

Joshua.Zwiebel
New Poster

How to install a python agent when using a gunicorn base application?

Hi,

 

Currently, the getting started wizard for installing the python agent gives a few options for starting the pyagent and creating the connecting. My application is using gunicorn to deploy a flask app but I do not have a run command. The instruction to prepend pyagent run to the run command, therefore, does not apply.

 

 

if __name__ == '__main__':
    options = {
        'bind': '%s:%s' % ('0.0.0.0', '5000'),
        'workers': number_of_workers()
    }
    StandaloneApplication(app.wsgi_app, options).run()

 

 This is the main for my app. StandaloneApplication is a class that inherits from gunicorns BaseApplication. I want to install the python agent and create the connecting and finish with the getting started wizard. How can I do this without the run command?

 

Apologies if anything is unclear I would be happy to clarify. Thanks for any help!

By replying you agree to the Terms and Conditions of the AppDynamics Community.
How to install a python agent when using a gunicorn base application?
0 REPLIES 0