From 29bd42c0b1c3bafcc34beeeeda750d25a1c52960 Mon Sep 17 00:00:00 2001 From: Yulya Artyukhina Date: Wed, 14 Aug 2024 15:53:43 +0200 Subject: [PATCH] Fix collecting metrics (#4822) # What this PR does Reverts the accidental removal of the ApplicationMetricsCollector from the metric register ## 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/apps/metrics_exporter/metrics_collectors.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/apps/metrics_exporter/metrics_collectors.py b/engine/apps/metrics_exporter/metrics_collectors.py index db1ecc14..87fb15c8 100644 --- a/engine/apps/metrics_exporter/metrics_collectors.py +++ b/engine/apps/metrics_exporter/metrics_collectors.py @@ -232,3 +232,6 @@ class ApplicationMetricsCollector: recalculate_orgs.append({"organization_id": org_id, "force": force_task}) if recalculate_orgs: start_calculate_and_cache_metrics.apply_async((recalculate_orgs,)) + + +application_metrics_registry.register(ApplicationMetricsCollector())