An AI gateway can route model requests and provide usage, token, budget, and cost context across models or teams. The gateway-specific information in this guide refers to LiteLLM Proxy; other gateways are not implied to have the same support. Values shown in AI Observability depend on LiteLLM configuration, the AutoI telemetry integration, and the data available in the selected environment.

Where to find gateway information

The LiteLLM AI Gateway tile appears in the AI Models section of the AI Overview, next to model token usage and the KV Cache Hit Rate vs KV Cache Usage chart. It summarizes activity for the selected AI cluster and time range.

The tile’s view selector provides:

  • Summary: spend, average request cost, token counts, keys at budget limit, and gateway inventory counts.
  • Top 5 Teams: the teams with the highest spend in the selected time window.
  • Top 5 Models: the models with the highest spend in the selected time window.
  • View all: opens the LiteLLM Usage Dashboard in a new browser tab.

The summary can show total cumulative spend, spend for the selected time window, average cost per request, keys at budget limit, input tokens, output tokens, and total tokens with a cached-input share. Team, model, key, and user counts can appear in the footer. A dash means the count is unavailable for that window.

Gateway data is distinct from inference-server metrics: LiteLLM reports request routing and usage, while the inference server reports model-serving behavior such as latency, throughput, and cache activity.

Open and navigate the Usage Dashboard

Select View all on the tile. The dashboard opens with the AI cluster and time range carried over from AI Overview. Its controls can include:

ControlPurpose
CLUSTERSelect the AI cluster whose LiteLLM data is shown.
MODELFilter data to one model; .* means all models.
TEAMFilter data to one team; .* means all teams.
Time rangeSet the window used by time-series charts.
REFRESH / AUTORefresh now or select an automatic refresh interval.
Sync TooltipsShow values at the same time across charts when hovering.

The dashboard can include four groups of information:

  • Cost & Usage: running spend and token totals, average cost, proxy request and provider-call counts, budget tables for teams/users/API keys, spend by team and model, and request/spend charts.
  • Token Usage: input, output, and total tokens, plus provider-reported cached-input tokens, provider cache reads, and LiteLLM response-cache misses where reported.
  • Latency: P95 end-to-end request latency, provider-only latency, time to first token, and deployment time per output token (TPOT), when reported.
  • Reliability: successful, failed, and total provider-call counts, provider-call success rate, incoming proxy requests, and deployment success/failure charts when available. Request and provider-call totals differ: retries and fallbacks can create multiple provider calls for one incoming request.

Budget tables can show a configured budget, remaining budget, time until reset, and recent spend. These values are meaningful only when teams, users, keys, and budgets are configured in LiteLLM.

Metrics and time scope

Depending on the integration and dashboard panels, available values can include:

  • Total or cumulative spend.
  • Spend over a selected time window.
  • Average cost per request.
  • Input, output, and total tokens.
  • Team or model usage summaries.
  • Keys that have reached their configured budget.

Check each panel’s label before comparing values:

  • Except for Total Cumulative Spend, values on the AI Overview tile cover its selected time range.
  • Total Cumulative Spend and running totals on the Usage Dashboard begin when the gateway’s usage counters start. They can reset when LiteLLM Proxy restarts; some collected running counters can also reset when application pods restart or receive new IP addresses. These totals may not match lifetime billing totals.
  • Values labeled (24h) cover the 24 hours ending at the end of the selected range. Budget columns labeled as last 24 hours use that same window.
  • Usage Dashboard charts can plot overlapping five-minute activity windows at one-minute intervals. Treat a point as the activity in its interval; do not add overlapping points to estimate a total.
  • The Cost & Quality tab uses the time range displayed on that application page.

Confirm the gateway’s billing and budget definitions for cost-related questions. Spend is LiteLLM’s calculation from token counts and the model price configured in LiteLLM. For a self-hosted model, it can be zero if no price is configured.

Application-level cost attribution

Application-level spend in Cost & Quality requires LiteLLM requests to be attributed to the matching AI application. Configure LiteLLM end-user tracking and ensure that the identity reported for a request matches the application identity used by AI Observability. Without this match, gateway-level usage may be visible while per-application spend is not.

When investigating missing or unexpected application cost:

  1. Confirm that LiteLLM Proxy telemetry is configured and arriving.
  2. Verify end-user tracking on the requests.
  3. Check that the reported user or application identity matches the AI Observability application.
  4. Compare the panel’s time window and aggregation with the LiteLLM Usage Dashboard.
  5. Review input/output token counts and the gateway’s cost or budget configuration.

Missing per-application cost should not be interpreted as zero spend until attribution and telemetry have been verified.

Gateway metrics are exposed on LiteLLM Proxy’s metrics endpoint (commonly /metrics on port 4000). Configure an AutoI Prometheus scrape job for the reachable endpoint so AutoI can collect and send the metrics to OpsRamp. Endpoint and port can differ by deployment.

For application-level cost, enable end-user cost tracking in LiteLLM and have each application send its application identity in the request’s standard user field. LiteLLM leaves this tracking off by default. For example:

litellm_settings:
  enable_end_user_cost_tracking_prometheus_only: true
{
  "model": "openai/gpt-oss-20b",
  "user": "travel-agent",
  "messages": [
    {
      "role": "user",
      "content": "Example prompt"
    }
  ]
}

Restart or reload LiteLLM as required by its configuration process. Without end-user attribution, the AI Overview tile and Usage Dashboard can still show gateway-wide information, but application-level spend can be unavailable. See Configure AutoI Collector for AutoI setup.

Investigate gateway usage

  1. Select the cluster and time range relevant to the question.
  2. Review spend, tokens, teams, models, and budget indicators that are available.
  3. Open View all to inspect details in the LiteLLM Usage Dashboard when present.
  4. Compare gateway usage with the associated application’s request and token metrics.
  5. Compare model latency, errors, and KV-cache behavior separately to distinguish gateway usage changes from inference performance changes.

Gateway data requires the supported LiteLLM integration and appropriate account access. Field names, refresh intervals, and available summaries can vary by integration version and configuration.