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)