DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Integrating New Relic APM with UWSGI

5 years ago levelup.gitconnected.com
Integrating New Relic APM with UWSGI

Summary: This is a summary of an article originally published by the source. Read the full original article here →

An APM (Application Performance Management) is used to monitor and manage the performance and availability of software applications. You can use it to figure out things like — time taken by an API, the time taken to run a database query, the time taken to run a function, etc.

Here you can define your environments like this: Here, production-app is what you will pass to your UWSGI config as the environment variable NEW_RELIC_ENVIRONMENTapp_name is the name by which you will see your application in the New Relic APM dashboard and monitor_mode indicates whether New Relic will send the data about your app to the New Relic collector. Now that you are done with the New Relic configuration it’s time to make changes to your UWSGI config.

In the Environment option, you need to define two environment variables as done in the above config file: In the ExecStart option, you just need to prepend your UWSGI command with the newrelic-admin run-program

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com