The Flask-SQLAlchemy extension adds database support for several relational databases, including PostgreSQL and MySQL. Flask’s extensions registry includes extensions that support relational and non-relational databases. Databaseįlask does not include database support on its own you’ll need to add an extension to your project to support your preferred database. In addition to your Python code, your Flask app will likely incorporate a database, and you’ll need to interface your app with an HTTP(S) server to make it available to web clients. Your Flask appīecause Flask is an non-opinionated framework, you have the option of assembling your stack in several different ways. (Although we focus on uWSGI and MySQL in this article, Datadog also integrates with other common components, such as Gunicorn and Postgres.) We’ll conclude with a discussion of some of the potential advantages of adding NGINX to the stack.
#Python monitor mysql install#
Install the Datadog Agent and the Python tracing client library.As you follow along with the article, you will:
#Python monitor mysql how to#
In this article, we will show you how to monitor a Flask application, from the underlying infrastructure to the performance of the app itself, using Datadog. Numerous Flask extensions are available, so you can create a custom architecture to suit your preferences and use case. It’s known as a microframework because it relies on extensions for much of its functionality.įlask avoids constraining the developer to a predetermined database or authentication mechanism, for example, and instead leaves room for choice. It inherits Python’s advantages of extensibility, broad support, and relative simplicity. Datadog does not use this term, but in this blog post we will include it for the sake of clarity in instances where we must reference a specific process name.įlask is a Python framework known for its ease of use. Editor’s note: UWSGI uses the term “master” to describe its primary process.