Skip to main content

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. Detailed performance metrics and transaction traces are collected once the scout-apm package is installed and configured.

screenshot

Requirements

Python Versions:

Scout APM works with the following frameworks:

For frameworks not listed above, you can use the agent's instrumentation API. See the Python help docs for more information.

Quick Start

A Scout account is required. Signup for Scout.

pip install scout-apm

Django

# 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.

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')

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

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.

Documentation

For full installation and troubleshooting documentation, visit our help site.

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.7.tar.gz (41.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

scout_apm-1.3.7-cp37-cp37m-manylinux1_x86_64.whl (54.0 kB view details)

Uploaded CPython 3.7m

scout_apm-1.3.7-cp37-cp37m-manylinux1_i686.whl (53.7 kB view details)

Uploaded CPython 3.7m

scout_apm-1.3.7-cp36-cp36m-manylinux1_x86_64.whl (54.0 kB view details)

Uploaded CPython 3.6m

scout_apm-1.3.7-cp36-cp36m-manylinux1_i686.whl (53.7 kB view details)

Uploaded CPython 3.6m

scout_apm-1.3.7-cp35-cp35m-manylinux1_x86_64.whl (54.0 kB view details)

Uploaded CPython 3.5m

scout_apm-1.3.7-cp35-cp35m-manylinux1_i686.whl (53.7 kB view details)

Uploaded CPython 3.5m

scout_apm-1.3.7-cp34-cp34m-manylinux1_x86_64.whl (53.6 kB view details)

Uploaded CPython 3.4m

scout_apm-1.3.7-cp34-cp34m-manylinux1_i686.whl (53.4 kB view details)

Uploaded CPython 3.4m

File details

Details for the file scout_apm-1.3.7.tar.gz.

File metadata

  • Download URL: scout_apm-1.3.7.tar.gz
  • Upload date:
  • Size: 41.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3

File hashes

Hashes for scout_apm-1.3.7.tar.gz
Algorithm Hash digest
SHA256 427e3e71fae96b11b7df518306a19c1e2041d8c47f8377fa9f29fd3259793a7d
MD5 ec49e13f459335a9b866684373f24447
BLAKE2b-256 a7a10aeb3eb4d87e360a69ea97a7d6e2841bdfc6b7061e1de79b75874359892b

See more details on using hashes here.

File details

Details for the file scout_apm-1.3.7-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: scout_apm-1.3.7-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 54.0 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for scout_apm-1.3.7-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 99ffb2b95f6d63f6e76f322971c311f3d9cb04db477ce393aacde95219e4234a
MD5 83b39b5b01f04f8135da7fd3884f3c9e
BLAKE2b-256 493d930773e669b2f12c9f299f67a3cad6b12ab904eab87ce74ce68e199e6d50

See more details on using hashes here.

File details

Details for the file scout_apm-1.3.7-cp37-cp37m-manylinux1_i686.whl.

File metadata

  • Download URL: scout_apm-1.3.7-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 53.7 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for scout_apm-1.3.7-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 3d0c8af8fcb320f8be884425d18dc3ffaba346fe3b4f62748ea7c86f2863852f
MD5 f5273e980d2a2629c6f7392d98bfc6f3
BLAKE2b-256 cbe6904a78d27b383efbfcf2885f24565d241e931c0a3e7a05ca4cf94404f341

See more details on using hashes here.

File details

Details for the file scout_apm-1.3.7-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: scout_apm-1.3.7-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 54.0 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for scout_apm-1.3.7-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8873c99494882cbe14710bdc5a0965ce48eea2e965e7c5f853d9e51d15ff287b
MD5 402052676756aaa6d87f53fe039ac27a
BLAKE2b-256 16cdbcd91a19cc6437ccf1e72a6536b7f12e1fe51afbb664071818020db2c9f5

See more details on using hashes here.

File details

Details for the file scout_apm-1.3.7-cp36-cp36m-manylinux1_i686.whl.

File metadata

  • Download URL: scout_apm-1.3.7-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 53.7 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for scout_apm-1.3.7-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 0c413fcc104a231668460c146d4dfcba553519aa569cd1976b3df19d20cdfb9f
MD5 b2d247dadb9f8dbfccd82f25715d0016
BLAKE2b-256 97e64ea14f257fbb3e8340ee4d9314a02d35a5eaca38d45f82eaaebd7a887489

See more details on using hashes here.

File details

Details for the file scout_apm-1.3.7-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: scout_apm-1.3.7-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 54.0 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for scout_apm-1.3.7-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3d12cac7044986646d45a16587d6040e148a5140f0ff0a46559043249373b428
MD5 d96a6ee887940594dba3ac9c6899905e
BLAKE2b-256 e330f46bd385f8149e6d5a646f7114bba3bdd47ecadce028f7b08490920b01b7

See more details on using hashes here.

File details

Details for the file scout_apm-1.3.7-cp35-cp35m-manylinux1_i686.whl.

File metadata

  • Download URL: scout_apm-1.3.7-cp35-cp35m-manylinux1_i686.whl
  • Upload date:
  • Size: 53.7 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for scout_apm-1.3.7-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 8f6c06470cbb688e20705b064d0f0fe9961786fefe4710b56a79d2ebe6b5bc0a
MD5 de93d992ea4783ff902b74d2f7222605
BLAKE2b-256 822b2a69004974004ce963d7b7383e45027a38d60aba2d06b437e594557a5a82

See more details on using hashes here.

File details

Details for the file scout_apm-1.3.7-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: scout_apm-1.3.7-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 53.6 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for scout_apm-1.3.7-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1bc26b12cf6cb846ae9e75562e6e07ea73ba81c53455b6615f4ffd3c37b77d4b
MD5 34c424ee9a927eb6358aaaf725481919
BLAKE2b-256 eae85fb3874003bdf94c93460cbe98d92645107cebf74ed760b6ea8d4bcd915f

See more details on using hashes here.

File details

Details for the file scout_apm-1.3.7-cp34-cp34m-manylinux1_i686.whl.

File metadata

  • Download URL: scout_apm-1.3.7-cp34-cp34m-manylinux1_i686.whl
  • Upload date:
  • Size: 53.4 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for scout_apm-1.3.7-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 debf935aea6bd409336c2633169ba39aada00a12155dfe306e571e6f166fde7f
MD5 5483bca4996633a618eded961e17e8b6
BLAKE2b-256 83b46c341cfb04056324c341b88cfcc686a50c827a59ab2e3a6ee92177559070

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page