mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-17 23:51:30 +00:00
add litellm_team_budget_reset_at_metric
This commit is contained in:
parent
f201888f69
commit
6a3e217fdf
1 changed files with 18 additions and 0 deletions
|
|
@ -81,6 +81,9 @@ DEFINED_PROMETHEUS_METRICS = Literal[
|
|||
"litellm_output_tokens_metric",
|
||||
"litellm_deployment_successful_fallbacks",
|
||||
"litellm_deployment_failed_fallbacks",
|
||||
"litellm_remaining_team_budget_metric",
|
||||
"litellm_team_max_budget_metric",
|
||||
"litellm_team_budget_reset_at_metric",
|
||||
]
|
||||
|
||||
|
||||
|
|
@ -186,6 +189,21 @@ class PrometheusMetricLabels:
|
|||
|
||||
litellm_deployment_failed_fallbacks = litellm_deployment_successful_fallbacks
|
||||
|
||||
litellm_remaining_team_budget_metric = [
|
||||
UserAPIKeyLabelNames.TEAM.value,
|
||||
UserAPIKeyLabelNames.TEAM_ALIAS.value,
|
||||
]
|
||||
|
||||
litellm_team_max_budget_metric = [
|
||||
UserAPIKeyLabelNames.TEAM.value,
|
||||
UserAPIKeyLabelNames.TEAM_ALIAS.value,
|
||||
]
|
||||
|
||||
litellm_team_budget_reset_at_metric = [
|
||||
UserAPIKeyLabelNames.TEAM.value,
|
||||
UserAPIKeyLabelNames.TEAM_ALIAS.value,
|
||||
]
|
||||
|
||||
@staticmethod
|
||||
def get_labels(label_name: DEFINED_PROMETHEUS_METRICS) -> List[str]:
|
||||
default_labels = getattr(PrometheusMetricLabels, label_name)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue