TrueFoundryChangelog
Announcements
DeprecationLLM Gateway, Metrics & TracesAnnounced Apr 23, 2026

AI Gateway Metrics Rename

Metric names in AI Gateway are being renamed. A dual-write transition period lets you migrate dashboards and alerts without downtime.

In effect. The deadline was Jun 30, 2026.

Who's affected
Teams with dashboards, alerts, or monitoring tools that read AI Gateway metrics whose names start with llm_gateway_.
What to do
Change llm_gateway_ to ai_gateway_ in your dashboards and alerts while both names are still published. The cost metric's new name differs slightly.
On-prem versions
Starts in 0.136.0Compare them with the control plane version you run.

What Is Changing

All metric names in AI Gateway are being renamed from the llm_gateway_* prefix to ai_gateway_*.

The general rule is a prefix swap: llm_gateway_ → ai_gateway_. One metric differs from this rule: llm_gateway_request_total_cost_total → ai_gateway_request_cost_total.

Complete rename map (names as seen in Prometheus scrape):

Core request metrics

Old NameNew Name
llm_gateway_requests_totalai_gateway_requests_total
llm_gateway_input_tokens_totalai_gateway_input_tokens_total
llm_gateway_output_tokens_totalai_gateway_output_tokens_total
llm_gateway_request_total_cost_totalai_gateway_request_cost_total
llm_gateway_request_model_inference_failure_totalai_gateway_request_model_inference_failure_total
llm_gateway_config_parsing_failures_totalai_gateway_config_parsing_failures_total
llm_gateway_request_processing_msai_gateway_request_processing_ms
llm_gateway_first_token_latency_msai_gateway_first_token_latency_ms
llm_gateway_inter_token_latency_msai_gateway_inter_token_latency_ms

Rate limit & routing metrics

Old NameNew Name
llm_gateway_load_balanced_requests_totalai_gateway_load_balanced_requests_total
llm_gateway_fallback_requests_totalai_gateway_fallback_requests_total
llm_gateway_rate_limit_applied_totalai_gateway_rate_limit_applied_total
llm_gateway_rate_limit_nominated_totalai_gateway_rate_limit_nominated_total
llm_gateway_rate_limit_requests_total (deprecated)ai_gateway_rate_limit_requests_total (deprecated)

Budget metrics

Old NameNew Name
llm_gateway_budget_applied_totalai_gateway_budget_applied_total
llm_gateway_budget_nominated_totalai_gateway_budget_nominated_total
llm_gateway_budget_requests_total (deprecated)ai_gateway_budget_requests_total (deprecated)

Guardrail metrics

Old NameNew Name
llm_gateway_guardrails_requests_totalai_gateway_guardrails_requests_total
llm_gateway_guardrail_requests_totalai_gateway_guardrail_requests_total
llm_gateway_guardrail_execution_latency_msai_gateway_guardrail_execution_latency_ms

Model health metrics

Old NameNew Name
llm_gateway_model_cooldown_state_totalai_gateway_model_cooldown_state_total
llm_gateway_model_threshold_latency_exceeded_totalai_gateway_model_threshold_latency_exceeded_total

Why This Change

The product has been rebranded from LLM Gateway to AI Gateway to reflect the broader set of capabilities it now supports (agents, MCP, guardrails, etc.). Aligning the OTel metric names with the product name makes monitoring consistent with the rest of the platform.

Transition: Dual-Write Mode

To avoid breaking existing dashboards and alerts immediately, a dual-write mode was introduced in v0.136.0. When enabled, the /metrics endpoint emits both the old llm_gateway_* metrics and the new ai_gateway_* metrics in a single scrape response.

Dual-write is controlled by the environment variable:

ENABLE_DOUBLE_WRITE_FOR_METRICS=true   # default: true (since v0.136.0)

During the transition period, both sets of metrics are available simultaneously so you can update your dashboards at your own pace.

What You Need to Do

  1. Verify dual-write is active

    Confirm that ENABLE_DOUBLE_WRITE_FOR_METRICS is set to true (it is true by default). Scrape the /metrics endpoint and verify you see both llm_gateway_* and ai_gateway_* series.

  2. Update dashboards and alerts

    Replace all references to llm_gateway_* OTel metric names with the corresponding ai_gateway_* names in your Grafana dashboards, Prometheus alerting rules, and any other monitoring configuration.

    Use the rename table above as your migration reference. The general pattern is:

    • Prefix: llm_gateway_ → ai_gateway_ (only change visible in the scraped output — counters retain _total as the Prometheus exporter re-adds it)
  3. Disable dual-write after migration

    Once all dashboards and alerts have been updated to use the new ai_gateway_* names, set ENABLE_DOUBLE_WRITE_FOR_METRICS=false to stop emitting the legacy metrics and reduce scrape payload size.


If you have questions or need help with the migration, reach out to [email protected] — we're happy to assist.

Questions about this change? Email [email protected].