Collect and display per-node service health observations
This commit is contained in:
1 parent
9a09314758
commit
37b4a66ba4
12 files changed
+644
No files matched your search
@@ -4,6 +4,8 @@ from urllib.parse import urlsplit
|
||||
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
|
||||
from .service_health import load_health_targets
|
||||
|
||||
|
||||
def required_env(name):
|
||||
value = os.environ.get(name)
|
||||
@@ -119,6 +121,13 @@ CELERY_BROKER_URL = os.environ.get(
|
||||
CELERY_BROKER_TRANSPORT_OPTIONS = {"confirm_publish": True}
|
||||
CELERY_TASK_DEFAULT_QUEUE = "coulobre"
|
||||
CELERY_TASK_IGNORE_RESULT = True
|
||||
try:
|
||||
SERVICE_HEALTH_TARGETS = load_health_targets(
|
||||
os.environ.get("COULOBRE_SERVICE_HEALTH", "{}")
|
||||
)
|
||||
except ValueError as error:
|
||||
raise ImproperlyConfigured(f"COULOBRE_SERVICE_HEALTH: {error}") from None
|
||||
|
||||
LOCAL_WEB_ACTIVATION = os.environ.get("COULOBRE_LOCAL_WEB_ACTIVATION") == "1"
|
||||
LOCAL_WEB_HTTPS = os.environ.get("COULOBRE_LOCAL_WEB_HTTPS") == "1"
|
||||
LOCAL_WEB_SFTP = os.environ.get("COULOBRE_LOCAL_WEB_SFTP") == "1"
|
||||
|
||||
Reference in new issue
Block a user