django-bzmon 0.1.1

Creator: danarutscher

Last updated:

Add to Cart

Description:

djangobzmon 0.1.1

BZMon is a Django app to provide access to system monitoring status through API.
Detailed documentation is in the “docs” directory.

Quick start

Add “bzmon” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
'bzmon',
]

Include the bzmon URLconf in your project urls.py like this:
path('bzmon/', include('bzmon.urls')),

Add BZMON_CONFIG to your django settings.py like this:
BZMON_CONFIG = {
"token": {
"required": True,
"token": "token"
},
"monitor": {
"memory": True,
"storage": True
},
"memory": {
"warn": True,
"warn_level": 500
},
"storage": [
{
"path": str(BASE_DIR),
"warn": True,
"warn_level": 500
},
{
"path": "/unexist",
"warn": True,
"warn_level": 500
}
],
"contacts": [
{
"name": "Bo Zhao",
"email": "bo.zhao@bz-dev"
}
]
}

Visit http://127.0.0.1:8000/bzmon/?token=token to get .

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.