Skip to content

ishuah/python-batian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-batian

Python agent for the Batian Application monitoring platform. Currently only supports Django. More frameworks will be supported soon.

Installation

via pip

    $ pip install python batian

via github (for development purposes)

    $ git clone [email protected]:ishuah/python-batian.git
    $ cd python-batian
    $ pip install -e .

Usage

Django

After installation, add two variables to your settings.py:

    BATIAN_APP_NAME = 'myapp'
    BATIAN_SERVER_URL = 'http://<mybatianserverdomainorport>:<port>/api/v1/event'

Then add batian to your INSTALLED_APPS

    INSTALLED_APPS = [
        ...
        'batian',
        ...
    ]

Finally, add the batian middleware to your MIDDLEWARE_CLASSES. Make sure it's the at the top of the list otherwise the agent won't be able to log everything.

    MIDDLEWARE_CLASSES = [
        'batian.contrib.django.middleware.BatianAPMMiddleware',
        ...
    ]

About

Python client for the Batian monitoring platform.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages