🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

fix: add prefix to standalone metrics - #27526

Merged
pawbana merged 1 commit into
mainfrom
pawel/fix-standalone-gateway-metrics-prefix
Jul 27, 2026
Merged

fix: add prefix to standalone metrics#27526
pawbana merged 1 commit into
mainfrom
pawel/fix-standalone-gateway-metrics-prefix

Conversation

@pawbana

@pawbana pawbana commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Adds coder_ai_gateway_ to standalone Gateway metics to match embedded case.

@pawbana
pawbana force-pushed the pawel/fix-standalone-gateway-metrics-prefix branch from 6e40b63 to 17c3d6a Compare July 27, 2026 12:51
@coder-tasks

coder-tasks Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Documentation Check

Updates Needed

  • docs/ai-coder/ai-gateway/monitoring.md - Standalone AI Gateway replicas (coder ai-gateway start) previously exported unprefixed series (interceptions_total, key_pool_state, provider reload metrics) and now export them as coder_ai_gateway_*. Add a note that standalone replica series names change on upgrade, and that unlike the embedded gateway in coderd, standalone replicas emit only the new prefix with no legacy coder_aibridged_* alias.
  • docs/ai-coder/ai-gateway/rebranding-migration.md - The Metrics section states that "Both the old and new metric names are emitted simultaneously today" and that "Every series is exported under both prefixes". That only holds for the gateway embedded in coderd, which wraps its registry with NewMetricAliasRegisterer. Scope the claim to the embedded gateway and state that standalone replicas expose coder_ai_gateway_* only.

Everything else in the diff (extracting the prefix into aibridgemetrics.PrometheusMetricPrefix) is internal and needs no docs. The metric names listed in docs/admin/integrations/prometheus.md are unaffected, since that page documents the embedded gateway.


Automated review via Coder Agents

@pawbana
pawbana requested a review from mtojek July 27, 2026 12:55
@pawbana
pawbana enabled auto-merge (squash) July 27, 2026 12:57
@pawbana
pawbana merged commit 5770085 into main Jul 27, 2026
28 checks passed
@pawbana
pawbana deleted the pawel/fix-standalone-gateway-metrics-prefix branch July 27, 2026 13:02
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants