Scout Application Performance Monitoring Agent
Project description
# Scout Python APM Agent
Monitor the performance of Python Django apps, Flask apps, and Celery workers with Scout's [Python APM Agent](https://www.scoutapp.com). Detailed performance metrics and transaction traces are collected once the `scout-apm` package is installed and configured.
![screenshot](https://s3-us-west-1.amazonaws.com/scout-blog/python_monitoring_release/python_monitoring_screenshot.png)
## Requirements
Python Versions:
* Python 3.4+ ([request Python 2.7 support](https://github.com/scoutapp/scout_apm_python/issues/45))
Scout APM works with the following frameworks:
* Django 1.10+ ([request Django 1.8 and 1.9 support](https://github.com/scoutapp/scout_apm_python/issues/26))
* Flask 0.10+
* Celery 3.1+
* Pyramid 1.8+
* Bottle 0.12+
For frameworks not listed above, you can use the agent's instrumentation API. See the [Python help docs](http://help.apm.scoutapp.com/#python-agent) for more information.
## Quick Start
__A Scout account is required. [Signup for Scout](https://apm.scoutapp.com/users/sign_up).__
```sh
pip install scout-apm
```
### Django
```python
# settings.py
INSTALLED_APPS = (
'scout_apm.django', # should be listed first
# ... other apps ...
)
# Scout settings
SCOUT_MONITOR = True
SCOUT_KEY = "[AVAILABLE IN THE SCOUT UI]"
SCOUT_NAME = "A FRIENDLY NAME FOR YOUR APP"
```
### Flask
These instructions assume the app uses `SQLAlchemy`. If that isn't the case, remove the referencing lines.
```python
from scout_apm.flask import ScoutApm
from scout_apm.flask.sqlalchemy import instrument_sqlalchemy
# Setup a flask 'app' as normal
## Attaches ScoutApm to the Flask App
ScoutApm(app)
## Instrument the SQLAlchemy handle
instrument_sqlalchemy(db)
# Scout settings
app.config['SCOUT_MONITOR'] = True
app.config['SCOUT_KEY'] = "[AVAILABLE IN THE SCOUT UI]"
app.config['SCOUT_NAME'] = "A FRIENDLY NAME FOR YOUR APP"
```
### Pyramid
Add the `SCOUT_*` settings to the Pyramid config, and then `config.include('scout_apm.pyramid')`
```python
import scout_apm.pyramid
if __name__ == '__main__':
with Configurator() as config:
config.add_settings(
SCOUT_KEY = '...',
SCOUT_MONITOR = True,
SCOUT_NAME = 'My Pyramid App'
)
config.include('scout_apm.pyramid')
# Rest of your config...
```
### Bottle
```python
from scout_apm.bottle import ScoutPlugin
app = bottle.default_app()
app.config.update({'scout.name': "YOUR_APP_NAME",
'scout.key': "YOUR_KEY"
'scout.monitor': "true"})
scout = ScoutPlugin()
bottle.install(scout)
```
For full installation instructions, including information on configuring Scout via environment variables, see our [Python docs](http://help.apm.scoutapp.com/#python-agent).
## Documentation
For full installation and troubleshooting documentation, visit our
[help site](http://help.apm.scoutapp.com/#python-agent).
## Support
Please contact us at support@scoutapp.com or create an issue in this repo.
Monitor the performance of Python Django apps, Flask apps, and Celery workers with Scout's [Python APM Agent](https://www.scoutapp.com). Detailed performance metrics and transaction traces are collected once the `scout-apm` package is installed and configured.
![screenshot](https://s3-us-west-1.amazonaws.com/scout-blog/python_monitoring_release/python_monitoring_screenshot.png)
## Requirements
Python Versions:
* Python 3.4+ ([request Python 2.7 support](https://github.com/scoutapp/scout_apm_python/issues/45))
Scout APM works with the following frameworks:
* Django 1.10+ ([request Django 1.8 and 1.9 support](https://github.com/scoutapp/scout_apm_python/issues/26))
* Flask 0.10+
* Celery 3.1+
* Pyramid 1.8+
* Bottle 0.12+
For frameworks not listed above, you can use the agent's instrumentation API. See the [Python help docs](http://help.apm.scoutapp.com/#python-agent) for more information.
## Quick Start
__A Scout account is required. [Signup for Scout](https://apm.scoutapp.com/users/sign_up).__
```sh
pip install scout-apm
```
### Django
```python
# settings.py
INSTALLED_APPS = (
'scout_apm.django', # should be listed first
# ... other apps ...
)
# Scout settings
SCOUT_MONITOR = True
SCOUT_KEY = "[AVAILABLE IN THE SCOUT UI]"
SCOUT_NAME = "A FRIENDLY NAME FOR YOUR APP"
```
### Flask
These instructions assume the app uses `SQLAlchemy`. If that isn't the case, remove the referencing lines.
```python
from scout_apm.flask import ScoutApm
from scout_apm.flask.sqlalchemy import instrument_sqlalchemy
# Setup a flask 'app' as normal
## Attaches ScoutApm to the Flask App
ScoutApm(app)
## Instrument the SQLAlchemy handle
instrument_sqlalchemy(db)
# Scout settings
app.config['SCOUT_MONITOR'] = True
app.config['SCOUT_KEY'] = "[AVAILABLE IN THE SCOUT UI]"
app.config['SCOUT_NAME'] = "A FRIENDLY NAME FOR YOUR APP"
```
### Pyramid
Add the `SCOUT_*` settings to the Pyramid config, and then `config.include('scout_apm.pyramid')`
```python
import scout_apm.pyramid
if __name__ == '__main__':
with Configurator() as config:
config.add_settings(
SCOUT_KEY = '...',
SCOUT_MONITOR = True,
SCOUT_NAME = 'My Pyramid App'
)
config.include('scout_apm.pyramid')
# Rest of your config...
```
### Bottle
```python
from scout_apm.bottle import ScoutPlugin
app = bottle.default_app()
app.config.update({'scout.name': "YOUR_APP_NAME",
'scout.key': "YOUR_KEY"
'scout.monitor': "true"})
scout = ScoutPlugin()
bottle.install(scout)
```
For full installation instructions, including information on configuring Scout via environment variables, see our [Python docs](http://help.apm.scoutapp.com/#python-agent).
## Documentation
For full installation and troubleshooting documentation, visit our
[help site](http://help.apm.scoutapp.com/#python-agent).
## Support
Please contact us at support@scoutapp.com or create an issue in this repo.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scout_apm-1.3.2.tar.gz
(40.6 kB
view hashes)
Built Distributions
Close
Hashes for scout_apm-1.3.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0235ca617129c9b8e6f77380912f27aba7f7530cef4b3efaadefd5b1b994def9 |
|
MD5 | 81c79864288b299b0a363e30cfcb5e8d |
|
BLAKE2b-256 | 1afa66090ca77f70bb4ced5bcc70fb2fd7b23a224ee77f95592a3b2c0a83100a |
Close
Hashes for scout_apm-1.3.2-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a175827b6cdf90c38ef0ffb837b7c199282387fb677c0096e2f9645efe4d89e0 |
|
MD5 | 9116cbb38c9fb40d81a6a34ddc237b15 |
|
BLAKE2b-256 | 26436c29dcd436fdcc5fa440eea278e25507ea29993f579cd7f343dbcfa68683 |
Close
Hashes for scout_apm-1.3.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7de9c3581aface954417ff4ba55e888c805289b17599c0216d146008c42fec21 |
|
MD5 | 5e26d8200d6bb94024f7ca4800cbd6f0 |
|
BLAKE2b-256 | a7a3e5702a80f95906258fc8a91640df9d60349ffe5697af749d59162fac3d59 |
Close
Hashes for scout_apm-1.3.2-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab0609713ecc8599948c00b0c7ad00cd0f5cfc4c944279346028312b34d85adc |
|
MD5 | 5846fc7c539bea3ada6c5632ec219da5 |
|
BLAKE2b-256 | da4dafa9d2dd29edd4f0a3e447106db332d84648ddb4a24a6acc579208e992ef |
Close
Hashes for scout_apm-1.3.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1b3609cea0e72cf9a71f64aae0b2057f08658d24ee087e819dae4362e0e5ba2 |
|
MD5 | 836573ce72969b8bdfb225c25a6ae96e |
|
BLAKE2b-256 | 019b75e5e3f05b8969e5fcd32ea175a50eb619997df66a8e1f8bf59c17bb1db5 |
Close
Hashes for scout_apm-1.3.2-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4702e924880a2b44cca380d36841caab15b0947079dd098c3d12ad37f2993e9f |
|
MD5 | 051d2115d33c21b53d06e687cbee560b |
|
BLAKE2b-256 | 5fdb2b43e6cf227670b9eda7144721935368c0c29afef8cded52243ab6d7a6ff |
Close
Hashes for scout_apm-1.3.2-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 174c25cf005112da2792acae38cbb85fd9f249742a30fda131a5bcd095e3abd2 |
|
MD5 | 8c42c62821ff701f660c1dfc7f3dcf00 |
|
BLAKE2b-256 | 1e9f0ae99ab9b1ee477023d0aef1dead7bf174a0135f7970cfad460618ec6baf |
Close
Hashes for scout_apm-1.3.2-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fb968ac7dfc68e861ecfec5808d9d22d0432bcb1100aa4df2dd5417155a8e4f |
|
MD5 | 6c18d4f406927f3dbd390c9a4a8e3027 |
|
BLAKE2b-256 | a4d731aba14bcb98e1150c657f8c962afc5edfdedb7d6b795a8f2fd00c8818b9 |