shopcloud-django-monitoring
Monitoring App
Quickstart
pip3 istall shopcloud-django-monitoring
- Add "monitoring" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'monitoring',
]
PLUGINS = {
'MONITORING_SOURCES': {
'INSTALLED': [
'SQL_QUERY_V1',
'SQL_QUERY_V2',
'SQL_SAGE_GATEWAY_V1',
'NOT_SUCCESS_V1',
]
}
}
APP_TITLE = os.environ.get("APP_TITLE", "Foobar-Services")
- Include the polls URLconf in your project urls.py like this::
path('monitoring/', include('monitoring.urls')),
-
Run
python manage.py migrate
to create the polls models. -
Start the development server and visit http://127.0.0.1:8000/admin/ to create a metric (you'll need the Admin app enabled).
-
Visit http://127.0.0.1:8000/monitoring/ to participate in the Monitoring Metrics.
-
Queue
monitoring-metrics-proceed
anlegen.
Release
$ rm -rf build dist
$ pip3 install wheel twine
$ python3 setup.py sdist bdist_wheel
$ twine upload dist/*