feat(metrics): distinguish received and acknowledged CDRs
This commit is contained in:
@@ -25,6 +25,7 @@ async def get_aggregated_pipeline_stats(worker_stats_url: str) -> Dict[str, Any]
|
||||
from the Processing Worker.
|
||||
"""
|
||||
total_received = api_metrics.total_received
|
||||
total_acknowledged = api_metrics.total_acknowledged
|
||||
|
||||
try:
|
||||
loop = asyncio.get_running_loop()
|
||||
@@ -38,6 +39,7 @@ async def get_aggregated_pipeline_stats(worker_stats_url: str) -> Dict[str, Any]
|
||||
return {
|
||||
"pipeline": {
|
||||
"total_received": total_received,
|
||||
"total_acknowledged": total_acknowledged,
|
||||
"total_processed": pipeline_data.get("total_processed", 0),
|
||||
"total_dlq": pipeline_data.get("total_dlq", 0),
|
||||
"in_flight_buffer": pipeline_data.get("in_flight_buffer", 0),
|
||||
@@ -58,6 +60,7 @@ async def get_aggregated_pipeline_stats(worker_stats_url: str) -> Dict[str, Any]
|
||||
return {
|
||||
"pipeline": {
|
||||
"total_received": total_received,
|
||||
"total_acknowledged": total_acknowledged,
|
||||
"total_processed": 0,
|
||||
"total_dlq": 0,
|
||||
"in_flight_buffer": 0,
|
||||
|
||||
Reference in New Issue
Block a user