Table of Contents

Configuration

This page documents Orleans.Lattice.Api.Mcp.Telemetry 10.5.0, in the documentation for Orleans.Lattice 10.5.0 (release line 10.5), built 2026-12-05. It is also published as markdown, with every table and list, at configuration.md, and llms.txt lists every page.

AddTelemetryTools(Action<LatticeApiMcpTelemetryOptions> configure) binds LatticeApiMcpTelemetryOptions with services.Configure and registers an options validator, which runs when the options are first resolved. The type inherits every setting from LatticeTelemetryOptions in the transport-neutral Orleans.Lattice.Api.Telemetry package and declares none of its own; the validator delegates to that package's LatticeTelemetryOptionsValidator. The neutral proxy, guardrails and allow-list are bound to the very same instance, so one object configures them all.

For the walkthrough, including backend authentication and restricting the metric surface, see Setup. The MCP server itself is configured separately; see Orleans.Lattice.Api.Mcp configuration.

LatticeApiMcpTelemetryOptions

Option Type Default Validation and meaning
BackendAddress Uri? null Required, and must be absolute. The base address of the read-only Prometheus / PromQL-compatible backend.
AuthMode LatticeTelemetryBackendAuthMode None Must be a defined value: None, Bearer, Basic, MutualTls or DynamicBearer. Selects the backend credential the proxy presents; the caller's Lattice credential is never forwarded.
Credential LatticeTelemetryBackendCredential? null The backend secret, consulted per AuthMode: Bearer requires a non-empty BearerToken, Basic a non-empty BasicUsername (BasicPassword is not checked), and MutualTls a ClientCertificate. None and DynamicBearer need none.
RequestTimeout TimeSpan 30 seconds Must be strictly positive and at most int.MaxValue milliseconds. The per-request timeout of a backend call.
MaxRange TimeSpan 24 hours Must be strictly positive. The widest window a single range query may span.
MaxStep TimeSpan 1 hour Must be strictly positive. The largest resolution step a range query may request.
MetricAccess LatticeTelemetryMetricAccessMode ReadAll Must be a defined value. ReadAll exposes every backend metric; DenyAllExceptAllowed restricts every query, listing and metadata call to AllowedMetrics.
AllowedMetrics IList<string> empty Exact names and * wildcards admitted under DenyAllExceptAllowed, where it must hold at least one entry and no null or blank entry. Ignored under ReadAll. Get-only.

DynamicBearer draws its token from a registered ITelemetryBackendTokenProvider on each backend request. The options validator cannot check for that service; a request made without one, or with a provider that returns an empty token, fails closed and is never sent unauthenticated. For Azure managed Prometheus, register the provider from Orleans.Lattice.Api.Mcp.Telemetry.Azure.

Authorization is not configuration

No option grants access. The tools are offered and served only to a caller holding the cluster-wide LatticeOperation.Telemetry capability, and only when the registered MCP authorizer admits them; the allow-list then narrows what such a caller may read. See Security.

Source map