Skip to content

Confirm vMCP cuts over to the diagnostics port before #6384 flips the default #6433

Open

Description

@amirejaz

Summary

telemetry.Config.ServeMetricsOnTransportPort() — the migration switch introduced in
#6370/#6371 — is consulted in exactly one place: pkg/runner/diagnostics.go, used by
the CLI/MCPServer runner. vMCP has its own path, NormalizeMCPTelemetryConfig in
cmd/thv-operator/pkg/spectoconfig/telemetry.go, which routes TelemetryConfigRef
through to telemetry.Config and therefore sets MetricsOnTransportPort — but
nothing on the vMCP side reads it to decide whether /metrics stays on the transport
port.

Concretely: #6368 (vMCP diagnostics split) already wires vMCP into the switch —
pkg/vmcp/server/diagnostics.go's transportPortMetricsHandler calls
ServeMetricsOnTransportPort() the same way the runner does. But #6368 and #6371 are
separate, currently-unmerged branches off main, so until both land, vMCP's copy of
this logic doesn't exist on main and the CRD-side MetricsOnTransportPort field
that #6371 exposes is settable-but-inert for VirtualMCPServer.

Risk

Once #6384 flips DefaultMetricsOnTransportPort to false, if #6368 has not merged
by then, MCPServer workloads cut over correctly but VirtualMCPServer workloads keep
serving /metrics unconditionally on the MCP port with no way to turn it off — the
opposite of a controlled cutover.

Action

Raised by @jhrozek on #6371:
#6371 (review)

Part of #6271. Related: #6384.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions