mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix(prometheus): align caller identity on latency metrics
This commit is contained in:
parent
a3ce23e80a
commit
9b331aecca
2 changed files with 8 additions and 1 deletions
|
|
@ -282,7 +282,9 @@ PROMETHEUS_DEPLOYMENT_AND_LATENCY_CALLER_IDENTITY_METRICS: Final[frozenset[str]]
|
|||
"litellm_deployment_success_responses",
|
||||
"litellm_deployment_failure_responses",
|
||||
"litellm_request_total_latency_metric",
|
||||
"litellm_llm_api_latency_metric",
|
||||
"litellm_llm_api_time_to_first_token_metric",
|
||||
"litellm_request_queue_time_seconds",
|
||||
"litellm_overhead_latency_metric",
|
||||
"litellm_deployment_latency_per_output_token",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -277,7 +277,10 @@ def test_successful_request_emits_configured_identity_on_real_counter_and_histog
|
|||
"end_time": end_time,
|
||||
"litellm_params": {
|
||||
"custom_llm_provider": "openai",
|
||||
"metadata": {"model_info": {"id": "deployment-id"}},
|
||||
"metadata": {
|
||||
"model_info": {"id": "deployment-id"},
|
||||
"queue_time_seconds": 0.05,
|
||||
},
|
||||
},
|
||||
"standard_logging_object": payload,
|
||||
}
|
||||
|
|
@ -304,7 +307,9 @@ def test_successful_request_emits_configured_identity_on_real_counter_and_histog
|
|||
"litellm_deployment_total_requests_total",
|
||||
"litellm_deployment_success_responses_total",
|
||||
"litellm_request_total_latency_metric_count",
|
||||
"litellm_llm_api_latency_metric_count",
|
||||
"litellm_llm_api_time_to_first_token_metric_count",
|
||||
"litellm_request_queue_time_seconds_count",
|
||||
"litellm_overhead_latency_metric_count",
|
||||
"litellm_deployment_latency_per_output_token_count",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue