feat(metrics): add copykar_redis_queue_size gauge and update grafana queue panels

This commit is contained in:
mamad
2026-08-27 21:18:28 +03:30
parent 1510af647c
commit 4f5570850e
3 changed files with 74 additions and 18 deletions
+5
View File
@@ -48,6 +48,11 @@ QUEUE_POSTS_GAUGE = Gauge(
["status"]
)
REDIS_QUEUE_SIZE_GAUGE = Gauge(
"copykar_redis_queue_size",
"Current number of posts waiting in Redis incoming queue"
)
def start_metrics_server(port: int = 8000):
try:
start_http_server(port)