From 7c5c02bba61b9e46bc94817c086126b197f76ae6 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Thu, 20 Jul 2023 22:34:47 +0530 Subject: [PATCH] dev: add server monitoring configuration --- apiserver/plane/settings/production.py | 7 +++++++ apiserver/requirements/base.txt | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apiserver/plane/settings/production.py b/apiserver/plane/settings/production.py index 2f2104397..acc1f34fe 100644 --- a/apiserver/plane/settings/production.py +++ b/apiserver/plane/settings/production.py @@ -71,6 +71,8 @@ CORS_ALLOW_HEADERS = [ CORS_ALLOW_CREDENTIALS = True +INSTALLED_APPS += ("scout_apm.django",) + STORAGES = { "staticfiles": { "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" + +# Scout Settings +SCOUT_MONITOR = os.environ.get("SCOUT_MONITOR", False) +SCOUT_KEY = os.environ.get("SCOUT_KEY", "") +SCOUT_NAME = "Plane" diff --git a/apiserver/requirements/base.txt b/apiserver/requirements/base.txt index 3421d9bb1..76c3dace9 100644 --- a/apiserver/requirements/base.txt +++ b/apiserver/requirements/base.txt @@ -31,4 +31,5 @@ slack-sdk==3.21.3 celery==5.3.1 django_celery_beat==2.5.0 psycopg-binary==3.1.9 -psycopg-c==3.1.9 \ No newline at end of file +psycopg-c==3.1.9 +scout-apm==2.26.1 \ No newline at end of file