From 19dfe3d2621ec9c030d4770f11f2b3b6f0e32d98 Mon Sep 17 00:00:00 2001 From: Yulya Artyukhina Date: Wed, 21 Aug 2024 16:31:54 +0200 Subject: [PATCH] Fix getting metrics list from env (#4891) # What this PR does ## Which issue(s) this PR closes Related to [issue link here] ## Checklist - [ ] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes. --- engine/settings/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/settings/base.py b/engine/settings/base.py index 14dce731..806c776a 100644 --- a/engine/settings/base.py +++ b/engine/settings/base.py @@ -117,7 +117,7 @@ METRICS_ALL = [ METRIC_USER_WAS_NOTIFIED_OF_ALERT_GROUPS_NAME, ] # List of metrics to collect. Collect all available application metrics by default -METRICS_TO_COLLECT = os.environ.get("METRICS_TO_COLLECT", METRICS_ALL) +METRICS_TO_COLLECT = getenv_list("METRICS_TO_COLLECT", METRICS_ALL) # Database