From d388f91bcdcddd0086260d5446be4ff33790d1ae Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Tue, 5 Nov 2024 12:16:16 -0500 Subject: [PATCH] Metrics dispatcher callback receiver swaparoo --- awx/main/analytics/subsystem_metrics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/analytics/subsystem_metrics.py b/awx/main/analytics/subsystem_metrics.py index 2662a257fc7e..1e4194b0279f 100644 --- a/awx/main/analytics/subsystem_metrics.py +++ b/awx/main/analytics/subsystem_metrics.py @@ -452,14 +452,14 @@ def collect(self): class CallbackReceiverMetricsServer(MetricsServer): def __init__(self): registry = CollectorRegistry(auto_describe=True) - registry.register(CustomToPrometheusMetricsCollector(DispatcherMetrics(metrics_have_changed=False))) + registry.register(CustomToPrometheusMetricsCollector(CallbackReceiverMetrics(metrics_have_changed=False))) super().__init__(settings.METRICS_SERVICE_CALLBACK_RECEIVER, registry) class DispatcherMetricsServer(MetricsServer): def __init__(self): registry = CollectorRegistry(auto_describe=True) - registry.register(CustomToPrometheusMetricsCollector(CallbackReceiverMetrics(metrics_have_changed=False))) + registry.register(CustomToPrometheusMetricsCollector(DispatcherMetrics(metrics_have_changed=False))) super().__init__(settings.METRICS_SERVICE_DISPATCHER, registry)