Make metrics uniform

This commit is contained in:
Cyber MacGeddon 2025-04-23 10:46:38 +01:00
parent 0fbe6f6676
commit 3c5f6edc54
7 changed files with 48 additions and 28 deletions

View file

@ -68,12 +68,22 @@ class Processor(AsyncProcessor):
}
)
config_request_metrics = ConsumerMetrics(id + "-config-request")
config_response_metrics = ProducerMetrics(id + "-config-response")
config_push_metrics = ProducerMetrics(id + "-config-push")
config_request_metrics = ConsumerMetrics(
processor = self.id, flow = None, name = "config-request"
)
config_response_metrics = ProducerMetrics(
processor = self.id, flow = None, name = "config-response"
)
config_push_metrics = ProducerMetrics(
processor = self.id, flow = None, name = "config-push"
)
flow_request_metrics = ConsumerMetrics(id + "-flow-request")
flow_response_metrics = ProducerMetrics(id + "-flow-response")
flow_request_metrics = ConsumerMetrics(
processor = self.id, flow = None, name = "flow-request"
)
flow_response_metrics = ProducerMetrics(
processor = self.id, flow = None, name = "flow-response"
)
self.config_request_consumer = Consumer(
taskgroup = self.taskgroup,