feat(metrics): add copykar_redis_queue_size gauge and update grafana queue panels
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user