dev: add server monitoring configuration

This commit is contained in:
pablohashescobar 2023-07-20 22:34:47 +05:30
parent 78669363b1
commit 7c5c02bba6
2 changed files with 9 additions and 1 deletions

View File

@ -71,6 +71,8 @@ CORS_ALLOW_HEADERS = [
CORS_ALLOW_CREDENTIALS = True CORS_ALLOW_CREDENTIALS = True
INSTALLED_APPS += ("scout_apm.django",)
STORAGES = { STORAGES = {
"staticfiles": { "staticfiles": {
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage", "BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
@ -270,3 +272,8 @@ GITHUB_ACCESS_TOKEN = os.environ.get("GITHUB_ACCESS_TOKEN", False)
ENABLE_SIGNUP = os.environ.get("ENABLE_SIGNUP", "1") == "1" ENABLE_SIGNUP = os.environ.get("ENABLE_SIGNUP", "1") == "1"
# Scout Settings
SCOUT_MONITOR = os.environ.get("SCOUT_MONITOR", False)
SCOUT_KEY = os.environ.get("SCOUT_KEY", "")
SCOUT_NAME = "Plane"

View File

@ -31,4 +31,5 @@ slack-sdk==3.21.3
celery==5.3.1 celery==5.3.1
django_celery_beat==2.5.0 django_celery_beat==2.5.0
psycopg-binary==3.1.9 psycopg-binary==3.1.9
psycopg-c==3.1.9 psycopg-c==3.1.9
scout-apm==2.26.1