summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Meyers <chris.meyers.fsu@gmail.com>2024-11-05 18:16:16 +0100
committerChris Meyers <chrismeyersfsu@users.noreply.github.com>2024-11-08 06:06:17 +0100
commitd388f91bcdcddd0086260d5446be4ff33790d1ae (patch)
treef0839c388ae181ba35302051de076f770e0f1039
parentInstall awx collection from branch for operator ci (diff)
downloadawx-d388f91bcdcddd0086260d5446be4ff33790d1ae.tar.xz
awx-d388f91bcdcddd0086260d5446be4ff33790d1ae.zip
Metrics dispatcher callback receiver swaparoo
-rw-r--r--awx/main/analytics/subsystem_metrics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/awx/main/analytics/subsystem_metrics.py b/awx/main/analytics/subsystem_metrics.py
index 2662a257fc..1e4194b027 100644
--- a/awx/main/analytics/subsystem_metrics.py
+++ b/awx/main/analytics/subsystem_metrics.py
@@ -452,14 +452,14 @@ class CustomToPrometheusMetricsCollector(prometheus_client.registry.Collector):
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)