metrics: configure explicit histogram buckets for AI response latency
This commit is contained in:
+2
-1
@@ -59,7 +59,8 @@ ERRORS_RESOLVED_TOTAL = Counter(
|
|||||||
AI_LATENCY_SECONDS = Histogram(
|
AI_LATENCY_SECONDS = Histogram(
|
||||||
"copykar_ai_latency_seconds",
|
"copykar_ai_latency_seconds",
|
||||||
"Time taken for AI API operations",
|
"Time taken for AI API operations",
|
||||||
["action"]
|
["action"],
|
||||||
|
buckets=(0.5, 1.0, 2.0, 3.0, 5.0, 8.0, 12.0, 20.0, 30.0, 45.0, 60.0, 90.0, 120.0, 180.0)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Gauges
|
# Gauges
|
||||||
|
|||||||
Reference in New Issue
Block a user