feat(metrics): distinguish received and acknowledged CDRs

This commit is contained in:
2026-09-20 10:40:24 +03:30
parent 6ce567646b
commit f45c457dc8
5 changed files with 63 additions and 8 deletions

View File

@@ -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,