Skip to content

Add metrics reference for the platform - #1393

Open
reyortiz3 wants to merge 2 commits into
mainfrom
worktree-platform-metrics-reference
Open

reyortiz3 wants to merge 2 commits into
mainfrom
worktree-platform-metrics-reference

Conversation

@reyortiz3

Copy link
Copy Markdown
Contributor

Description

Adds a single Metrics reference page for the metrics the platform publishes, and reorganizes the platform sidebar so it has a home for upcoming observability and monitoring guides (separate PR).

  • New docs/platform/reference/metrics.mdx: 90 metrics in per-component tables (AI Gateway including its scanning and guardrails adapters, Connector Gateway, Enterprise Manager, and stacklok.build_info), with the Prometheus name-rendering rules, where each component serves /metrics, the Helm conditions under which metrics appear, and guidance for leader-only and sampled gauges.
  • sidebars.ts: "Operate platform clients" becomes Operate the platform, holding Stacklok CLI and the Metrics reference. The CLI page keeps its URL.
  • AI Gateway and Connector Gateway telemetry pages link to the reference. The Connector Gateway page said it published only kek_unsealable_reads_total; that sentence is corrected.

Metric names, types, units, labels, and emit conditions were extracted from the platform source and verified by independent reviewers (about 100 rows checked against code). The page documents the names the code emits today.

Left off the page (69 metrics, for a decision on whether any should be added):

  • Experiment-gated: platform_idp_bearer.authentications, model_catalog.skipped_models, directory.providers_config_stale.
  • Insights family (46 metrics) and the conversation spend backfill counter: no guide page, Helm reference only, and the data path is behind the insightsClassification experiment.
  • No guide page: admin connector tool refresh (2), AI Gateway conversation journal (2), directory.verified_claims.resolutions, directory.connector_policy.distributed_claim_denials.
  • Not emitted by any code today: the three stacklok.operator.reconcile.* metrics.
  • ToolHive proxy, vMCP, Registry, and embedded auth server metrics are out of scope.

Type of change

  • New documentation
  • Navigation/structure change

Related issues/PRs

The platform repo's own metrics docs are being reconciled with the code in a separate PR.

Screenshots

None. Please check the sidebar group in the Vercel preview.

Submitter checklist

Content and formatting

  • I have reviewed the content for technical accuracy
  • I have reviewed the content for spelling, grammar, and style

Navigation

  • New pages include a frontmatter section with title and description at a minimum
  • Sidebar navigation (sidebars.ts) updated for added, deleted, reordered, or renamed files
  • Redirects added to vercel.json for moved, renamed, or deleted pages (not needed: no URL changed)

Reviewer checklist

Content

  • I have reviewed the content for technical accuracy
  • I have reviewed the content for spelling, grammar, and style

🤖 Generated with Claude Code

Add a single reference page for the metrics that AI Gateway,
Connector Gateway, and Enterprise Manager publish, and group it with
the Stacklok CLI page under Operate the platform in the sidebar.
Link the reference from the AI Gateway and Connector Gateway telemetry
pages and correct the Connector Gateway metrics description.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs-website Ready Ready Preview Dec 3, 2026 9:28pm UTC

Request Review

Replace the wide five-column tables with a narrow index table per
area and one section per metric that lists its type, unit, labels, and
allowed label values. Content is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview — d4d07c74 Deployed Dec 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant