Skip to content

[None][refactor] Unify performance collection and exposure - #21688

Merged
reasonsolo merged 13 commits into
NVIDIA:mainfrom
reasonsolo:user/lizhiz/iter-log-prometheus-metrics
Nov 17, 2026
Merged

reasonsolo merged 13 commits into
NVIDIA:mainfrom
reasonsolo:user/lizhiz/iter-log-prometheus-metrics

Conversation

@reasonsolo

@reasonsolo reasonsolo commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Unify performance collection and its logging/Prometheus adapters without adding metric families or KV-cache/transfer business behavior. Production and offline execution share immutable observations categorized as per_req, per_iter, and per_rank.

All new observability metric definitions, KV-transfer measurements/outcomes, transfer cleanup fixes, native KV-cache instrumentation, operator reference, and feature tests are in #22083. Merge this refactor first so that PR can use the shared loop producer and transport serializer.

  • Add backend-independent PerfMetricsCollector / PerfMetricsRecord and executor-owned LoggerExposure. Reuse captured rank/KV snapshots rather than reading the source again for each exposure.
  • Add PrometheusExposure around the existing exporter implementation. Preserve MetricsCollector, its legacy logging methods, existing metric names/labels, dictionary-only producer paths, and flat JSON shape. The Prometheus metric definitions are structurally identical to main.
  • Keep request completion records separate from explicitly enabled diagnostic request iteration records. Retain each completion record and emit it directly; preserve mutable candidate_metrics / metrics_dict compatibility attributes and independently snapshot speculative-decoding arrays.
  • Replace positional stats-buffer access with IterationStatsRecord(NamedTuple) and keyword construction. A single compatibility conversion reads historical tuple shapes and ignores future trailing fields. Optional timing and loop fields carry existing observations. KV-transfer outcome parameters, record fields, wire serialization and category classification are deferred to [None][feat] Add KV-cache transfer and executor observability metrics #22083.
  • Preserve actual loop/capture iteration, sequence, and rank identity independently of delayed batch records. Transport loop observations as an executorLoop envelope; new metric families consuming that envelope belong to [None][feat] Add KV-cache transfer and executor observability metrics #22083.
  • Keep existing configuration switches, native-stat sampling, and logger-only basic KV refresh behavior. No new serving configuration fields, dependencies, native KV-cache implementation/binding changes, or disaggregation lifecycle changes are included.

The shared collector/exposure refactor exists only here. #22083 must reconcile its outcome-extended transport record after this refactor lands; the outcome extension is intentionally absent from this PR.

Validation

  • Passed: applicable pre-commit hooks, Python syntax and diff checks, and structural comparison showing every Prometheus metric constructor/definition matches main.
  • Scope checks show no edits to disaggregation business logic, metric enums/request transfer extraction, native KV-cache implementation, or bindings.
  • Regression coverage includes immutable category ownership, existing logger/Prometheus parity, cached snapshot de-duplication, source-read cadence, diagnostic-versus-completion accounting, independent loop identity, scrape independence, legacy tuple compatibility, and direct completion-record exposure without thawing/recollection.
  • Runtime Python tests and collector-overhead benchmarks have not been run. A target host/container is still needed. Passing hooks/syntax checks are not runtime validation.
  • Rebased onto inspected main f72ff0c77e; the follow-up must rebase after this refactor lands to reconcile its extended transport record.

Shared iteration serialization

IterationStatsRecord.to_dict() now owns the native-stats conversion and optional-field JSON aliases. Both worker serialization and the ADP all-ranks gather path use it. The existing camelCase keys, omitted optional values, legacy tuple layouts, and path-specific rank fields are preserved. Added compatibility coverage for both row shapes, zero timing values, request statistics, and historical tuple widths.

Validation: Python syntax checks and applicable pre-commit hooks passed. The new runtime regression tests have not been run; a target TensorRT-LLM container is still needed.

Dashboard preview

Prefill monitoring dashboard, identifiers blurred

Runnable Grafana dashboard example

Includes examples/serve/grafana/dashboard.py, example.config.json, metrics/log templates and a setup README. Linked from examples/serve/README.md and the performance-metrics documentation. Supports offline rendering, deployment dry-run and explicit publication. The default configuration renders one metrics dashboard with 80 panel templates; optional Loki logs have their own dashboard.

The example belongs to this PR. New KV-cache metric implementation remains in #22083; its optional panels need that instrumentation. Missing observations do not become measured zeros.

Validation: 25 standalone dashboard utility tests passed with mocked publication/Kubernetes operations, and the example configuration rendered offline. This does not validate live Grafana publication, PromQL execution or the native metrics instrumentation.

Overview

This change unifies performance metric collection and exposure. PerfMetricsCollector builds immutable per_req, per_iter, and per_rank records. Logger and Prometheus adapters expose those records. The change also adds IterationStatsRecord for iteration stats. It adds a standalone Grafana dashboard renderer and publisher under examples/serve/grafana/. The diff covers 29 files, with 15,099 lines added and 158 removed. The change does not add KV-transfer outcome metrics, native KV-cache instrumentation, or new metric definitions. Those belong to the follow-up in #22083.

Validation status:

  • The author reports that pre-commit hooks and Python syntax checks passed.
  • The author reports that structural comparison of Prometheus metric definitions passed.
  • The author reports that 32 standalone dashboard tests passed. Publication and Kubernetes operations were mocked.
  • The author reports offline rendering of the neutral example.
  • Runtime TensorRT-LLM executor and transfer tests have not run. A native rebuild has not run. A target host or container is needed.
  • Live Grafana publication, PromQL execution, and collector-overhead benchmarks have not run.
  • No CI results for the current head were available to this review.

Dev Engineer Review

  • Wire-format changes. BaseWorker._stats_serializer now routes per-rank dictionaries through PerfMetricsCollector. It parses other inputs with IterationStatsRecord.from_tuple and replaces the old tuple-field mapping through iteration_stats_row. The objectives state that the flat JSON shape is preserved. Confirm this against the serializer tests before merge. Confirm that the attentionDpRank key (default 0) and the rank key match their consumers.
  • Legacy tuple handling. IterationStatsRecord.from_tuple truncates tuples to the record's field count. Tuples wider than the known layout drop trailing values without an error. Confirm that no producer depends on those values.
  • KV-cache utilization formula. kv_cache_utilization uses used blocks when present and capacity is positive. Otherwise it uses capacity minus free blocks. It returns None for nonnumeric or nonpositive capacity, or when both used and free counts are absent. Callers that divided used blocks by maximum blocks directly must handle None.
  • KV-cache refresh cadence. PerfMetricsCollector polls the KV-cache reader on the first loop. It polls again when the loop-sequence gap reaches kv_refresh_interval (default 16). Between polls it reuses the last rank snapshot, so reported KV metrics can lag by up to 16 loops. Confirm that this lag is acceptable for dashboards.
  • Interface renames. MetricsCollector is renamed to PrometheusExposure. A MetricsCollector compatibility subclass keeps the old name. Legacy request and iteration methods are renamed. Check external callers that use the old method names.
  • Record ownership in result.py. GenerationResultBase now stores a list of PerfMetricsRecord objects. Speculative-decoding per-position data is copied into lists before recording. Check memory growth for long-running or high-candidate requests.
  • Profiling and logging behavior. profile_step now derives the rank filter from TLLM_PROFILE_LOG_RANKS. It requests KV-cache stats only when logging is on, iteration perf stats are disabled, the rank is selected, and a KV-cache manager exists. The prior inline log formatting, fetched-request delta tracking, and cached KV-utilization refresh logic are removed. Confirm that log output is unchanged for existing users.
  • Dashboard deployment side effects. The deploy path writes Grafana dashboards and Kubernetes ConfigMaps. In configmap-v2 mode, it preserves unrelated ConfigMap data and selected metadata. It checks dashboard and ConfigMap revisions before mutation. A --dry-run mode exists. Review the default publication mode and the --finalize-only checkpoint logic.
  • Dashboard error handling. The deployment code avoids printing Kubernetes stderr, HTTP bodies, configuration values, and credentials. Only mocked tests cover this behavior. Verify it in live runs.
  • Scope. The Grafana example, documentation, and Loki logs dashboard add about 3,170 lines combined. They are example and tooling code, not runtime paths. Runtime changes concentrate in py_executor.py, profiling.py, base_worker.py, result.py, openai_server.py, grpc/openengine/metrics.py, and metrics/.

QA Engineer Review

Test files and test-list files changed:

  • Added: tests/unittest/metrics/test_grafana_dashboard.py (+651 lines). Covers offline rendering, configuration validation, dry-run and verified publication, ConfigMap preservation, concurrent-change detection, and error redaction.
  • Added: tests/unittest/metrics/test_perf.py (+312 lines). Covers PerfMetricsRecord, PerfMetricsCollector, KV-cache refresh, loop sequencing, Prometheus output, and IterationStatsRecord.from_tuple compatibility for widths 1–10 and wider historical tuples.
  • Modified: tests/unittest/metrics/test_collector.py (+78 lines). Adds TestCollectedRequestRecords, parameterized for HTTP and OpenEngine exposure.
  • Modified: tests/unittest/executor/test_stats_serializer.py (+89 lines). Covers named and tuple forms, legacy prefix lengths, tagged per-rank dictionaries, and the executor-loop field.
  • Modified: tests/unittest/_torch/pyexecutor/test_iter_stats_interval.py (+13/-3). Covers fetched-delta identity and reused-block metrics.
  • Modified: tests/unittest/_torch/pyexecutor/test_iter_stats_populate.py (+6 lines). Initializes _perf_metrics and rank fields. Adds a regression check that the capture iteration (999) differs from the batch iteration (17).
  • Modified: tests/unittest/_torch/pyexecutor/test_profile_endpoints.py (+88 lines). Initializes _perf_metrics in the bare executor fixture. Adds resource-rebinding and profile_step metric tests.
  • Modified: tests/unittest/_torch/pyexecutor/test_executor_resource_rebind.py (+2 lines). Initializes ex._perf_metrics in the fixture.
  • Modified: tests/unittest/grpc/openengine/test_metrics.py (+21 lines). Adds test_collect_once_exposes_iteration_and_rank.
  • Modified: tests/integration/test_lists/test-db/l0_cpu.yml (+2 lines). Adds unittest/metrics/test_grafana_dashboard.py and unittest/metrics/test_perf.py. The existing unittest/metrics/test_collector.py entry remains.

Not established:

  • Whether the modified _torch/pyexecutor, executor, and grpc test files are covered by existing CI lists. The available evidence does not show their list entries.
  • Pass or fail status for any test on the current head.

Coverage verdict: needs follow-up. The unit tests cover the new collector, serializer, and dashboard logic. Runtime tests have not run. Live dashboard publication and native metric instrumentation are not covered.

Per-File QA Perspective

  • docs/source/commands/trtllm-serve/index.rst: Adds the performance-metrics-collection toctree entry. No QA action needed.
  • docs/source/commands/trtllm-serve/performance-metrics-collection.md: Documents the collection model, cadence, and dashboard steps. Verify the documented controls against the implementation.
  • examples/serve/README.md: Adds the Grafana section and link. No QA action needed.
  • examples/serve/grafana/README.md: Documents offline and live workflows. Confirm that offline steps run as written.
  • examples/serve/grafana/dashboard.py: Renders dashboards and deploys ConfigMaps. Verify dry-run, --finalize-only, and redaction behavior against a live cluster.
  • examples/serve/grafana/example.config.json: Example config with scraping and logs disabled. Verify that the default render succeeds.
  • examples/serve/grafana/templates/logs.json: Logs dashboard template. Verify its LogQL queries against real Loki data.
  • tensorrt_llm/_torch/pyexecutor/iteration_stats.py: New record type with legacy tuple handling. Verify the attentionDpRank and rank output keys.
  • tensorrt_llm/_torch/pyexecutor/profiling.py: Changes profile logging and KV-cache collection gating. Verify TLLM_PROFILE_LOG_RANKS filtering and log output.
  • tensorrt_llm/_torch/pyexecutor/py_executor.py: Owns a PerfMetricsCollector and buffers IterationStatsRecord objects. Verify iteration stats output in Attention-DP runs.
  • tensorrt_llm/executor/base_worker.py: Replaces the stats serializer path. Verify JSON output for request, KV-cache, and timing fields.
  • tensorrt_llm/executor/result.py: Records performance records per result. Verify finish-reason labels and speculative-decoding metrics.
  • tensorrt_llm/grpc/openengine/metrics.py: Emits candidate records when present. Verify OpenEngine metric output.
  • tensorrt_llm/metrics/__init__.py: Adds exports. No QA action needed.
  • tensorrt_llm/metrics/collector.py: Renames the collector and adds a compatibility subclass. Verify that Prometheus metric names and labels are unchanged.
  • tensorrt_llm/metrics/logging.py: Adds LoggerExposure. Verify compact JSON and text log formats.
  • tensorrt_llm/metrics/perf.py: Adds the collector, record, and utilization helper. Verify the KV-cache utilization fallback and refresh cadence.
  • tensorrt_llm/serve/openai_server.py: Emits records through the collector. Verify the HTTP metrics path.
  • tests/integration/test_lists/test-db/l0_cpu.yml: Adds two CPU unit test entries. Verify that the entries run in CI.
  • tests/unittest/_torch/pyexecutor/test_iter_stats_interval.py: Updated fixtures and assertions. Run to confirm the fetched-delta identity checks.
  • tests/unittest/_torch/pyexecutor/test_iter_stats_populate.py: Adds a regression check. Run to confirm the capture and batch iteration values.
  • tests/unittest/_torch/pyexecutor/test_profile_endpoints.py: Fixture update and new profiling tests. Run to confirm the bare executor setup.
  • tests/unittest/executor/test_stats_serializer.py: Serializer and legacy-tuple tests. Run to confirm wire-field expectations.
  • tests/unittest/metrics/test_collector.py: Adds request-record tests. Run to confirm HTTP and OpenEngine exposure.
  • tests/unittest/metrics/test_grafana_dashboard.py: Dashboard unit tests with mocked publication. Mocks do not validate live Grafana or Kubernetes behavior.
  • tests/unittest/metrics/test_perf.py: Collector and record tests. Run to confirm KV-cache refresh and Prometheus output.

Review follow-up

Removed unused KV-transfer outcome plumbing from this PR, including the executor parameter, named-record field, JSON serialization, rank-category key and transport-specific assertions. The producer, transport extension, classification and their feature coverage belong to #22083.

Documented the added partition/freeze/mapping work and the pending benchmark dimensions; the existing JSON encoding/decoding passes are not new. Added explicit KV-utilization edge coverage for used-count precedence, free-only snapshots, unknown/zero capacity, logger N/A, and the unchanged Prometheus explicit-used-count guard. The inspected baseline already logs N/A for zero capacity, rather than 0%. Kept the materialization method names: they do not collide with domain types or shadow imported symbols.

Validation: initial syntax/lint and applicable commit hooks passed. Current runtime and serialization measurements are recorded below.

CodeRabbit review fixes

  • Keep include_logs default false throughout rendering; bypass environment proxies for loopback Grafana URLs while retaining redirect refusal.
  • Reset the existing collector in place before resource rebind, preserving the profiling manager's reference while clearing old loop/rank/fetched state.
  • Correct the stale outcome slot in the loop-envelope tuple fixture and verify zero queue-time histogram count.
  • Fix shared Logs dashboard worker/frontend selection and configurable role-label legends. Add regression coverage for the real profiling boundary and worker envelope, selected-rank/source-read gates, OpenEngine collection, finalize-only recovery, sidecar timeout, Secret decoding and loopback proxy routing.

Validation: 32 standalone dashboard tests passed; the neutral example renders offline; applicable commit hooks passed. Subsequent executor, collector and RPC runtime validation is recorded below.

CI regression fix and validation (2026-11-16)

The November 16 regression follow-up was validated at af72c4b6c0045183a5ea51d303677e2cf11d4828 (runtime fix f32cc674e219be25dc755b1a28f8879aa15afdf8).

  • Initialize iter_perf_stats_interval in the bare profiling fixture.
  • Compare ADP fanout JSON by decoded field values while retaining an exact pass-through assertion for already serialized rows. The failure was JSON key order, not different rank-local measurements.
  • Keep native IterationStats JSON encoded during worker transport and append the Python-owned fields directly. This removes the full native-JSON decode, immutable partition/freeze and re-encode from every buffered record. Request/exposure collection contracts and RPC deadlines are unchanged. Serializer regressions preserve all wire fields and reject native JSON decoding on the fast transport path.

The raw Jenkins parameters and checkout log for pipeline #70482 show df2eb906ef, predating the existing _num_prompt_tokens fixture fix f36d1464a1. The generated analysis incorrectly labels that run as f36d1464a1. A fresh standard CI run was requested after verifying the new GitHub head. Blossom-CI authorization and Start ci job succeeded.

Validation on umbriel-b200-027, container trtllm-test, with the exact checksum-verified native wheel produced by pipeline #70426 (the native build reused by #70482):

  • Profiling endpoints, iteration population, all metrics tests and stats serializer: 247 passed, 3 subtests passed.
  • OpenEngine exporter contracts, real RPC shutdown and deadline coverage: 8 passed.
  • TestGPTOSS::test_dflash with the normal CI conftest enabled: passed, all 1,319 GSM8K examples, accuracy 87.945%, acceptance length 3.396. Stats retrieval completed without RPCTimeout; test setup and teardown also passed. This is fresh B200 execution, not H100 execution.
  • Representative native iteration-record serialization: 10,000 rows in 0.874 s before / 0.200 s after. A real RPC carrying 50,000 buffered records reproduces the original three-second deadline failure; the optimized path returns all records with that same deadline (3.270 s including client-side JSON decoding after the RPC completes).
  • Full CPU-only PyExecutor sweep with the normal CI conftest enabled: 5,165 passed, 74 subtests passed, 791 GPU tests deselected (577.27 seconds).
  • Applicable signed-commit hooks passed. Pyrefly was unavailable, so no type-check success is claimed. Native binaries were reused from the matching CI build rather than rebuilt locally. Fresh H100/SBSA/full-pipeline results remain pending CI.

Main integration — 2026-11-17

Merged main at e80e20de35fd2709547b0dd7942e8eaef64b690a as signed merge commit 48fc18c976592156bced7a3538992de38fd40c99. Retained upstream multimodal encoder observations, input-processing observers and metric recording alongside the collected loop records. The upstream ninth tuple slot remains encoder stats, and the loop envelope follows it; both named records and historical tuples preserve both observations through the worker and rank-gather serializers. Native JSON forwarding stays on the fast transport path. Collector test teardown now unregisters its metrics so later serving tests can use the process registry without collisions.

Fresh validation on umbriel-b200-027 / trtllm-test: 298 CPU tests and 3 subtests passed across metrics, serializer, profiling, ADP iteration population, encoder timing, resource rebind and middleware; 525 schema CPU tests passed; both official generated manifest/schema freshness checks and applicable commit hooks passed. Existing container native artifacts containing current-main APIs were reused; the older CI70426 wheel lacked those APIs. No fresh native build or full-model inference run is claimed for this merge; the November 16 DFlash result above is historical. Pyrefly was unavailable.

Fresh standard CI requested for this head. GitHub confirmed the pushed head is mergeable.

@reasonsolo reasonsolo changed the title [None][feat] Export executor iteration timings to Prometheus [None][feat] Export serving performance metrics from existing engine stats Nov 5, 2026
@reasonsolo
reasonsolo force-pushed the user/lizhiz/iter-log-prometheus-metrics branch from eacddca to 68b305d Compare November 9, 2026 05:12
@reasonsolo reasonsolo changed the title [None][feat] Export serving performance metrics from existing engine stats [None][feat] Export serving performance and per-tier KV-cache pressure metrics Nov 10, 2026
@reasonsolo reasonsolo changed the title [None][feat] Export serving performance and per-tier KV-cache pressure metrics [None][feat] Unify performance collection and expose per-tier KV-cache metrics Nov 11, 2026
@reasonsolo
reasonsolo force-pushed the user/lizhiz/iter-log-prometheus-metrics branch from f472e8c to 8597dce Compare November 11, 2026 06:33
@reasonsolo reasonsolo changed the title [None][feat] Unify performance collection and expose per-tier KV-cache metrics [None][refactor] Unify performance collection and exposure Nov 11, 2026
@reasonsolo
reasonsolo force-pushed the user/lizhiz/iter-log-prometheus-metrics branch 2 times, most recently from cb068cb to 07077c0 Compare November 12, 2026 02:29
@reasonsolo
reasonsolo marked this pull request as ready for review November 12, 2026 03:22
@reasonsolo
reasonsolo requested review from a team as code owners November 12, 2026 03:22
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

Walkthrough

The PR adds shared performance-metric records and collection paths for executor, HTTP, and OpenEngine integrations. It also adds a Grafana dashboard renderer and publisher, dashboard templates, example configuration, documentation, and CPU-only tests.

Changes

Shared Performance Metrics

Layer / File(s) Summary
Metric records and exposure
tensorrt_llm/metrics/*, tests/unittest/metrics/test_perf.py, tests/unittest/metrics/test_collector.py
Adds categorized performance records, a shared collector, and logger and Prometheus exposure. Tests cover immutable snapshots, metric categories, rank snapshots, KV-cache refresh, and completed-request records.
Executor and serving integration
tensorrt_llm/_torch/pyexecutor/*, tensorrt_llm/executor/*, tensorrt_llm/serve/openai_server.py, tensorrt_llm/grpc/openengine/metrics.py, tests/unittest/_torch/pyexecutor/*, tests/unittest/executor/test_stats_serializer.py, tests/unittest/grpc/openengine/test_metrics.py
Executor, worker, HTTP, and OpenEngine paths collect or serialize metric records. Iteration records retain available timing, scheduler, KV-cache, rank, and executor-loop fields. Tests cover tuple compatibility, iteration identity, and request records.
Metrics documentation
docs/source/commands/trtllm-serve/index.rst, docs/source/commands/trtllm-serve/performance-metrics-collection.md
Adds a performance-metrics guide to the serving documentation. It describes collection, exposure, serialization, KV-utilization rules, and Grafana setup.

Grafana Monitoring

Layer / File(s) Summary
Dashboard configuration and rendering
examples/serve/grafana/dashboard.py, examples/serve/grafana/example.config.json, examples/serve/grafana/templates/logs.json, tests/unittest/metrics/test_grafana_dashboard.py, tests/integration/test_lists/test-db/l0_cpu.yml
Adds validated configuration and dashboard rendering, including optional logs, unique-session panels, and scrape resources. The example configuration and CPU-only tests cover rendering options and validation.
Dashboard publication and verification
examples/serve/grafana/dashboard.py, examples/serve/grafana/README.md, examples/serve/README.md, tests/unittest/metrics/test_grafana_dashboard.py
Adds Grafana and Kubernetes publication flows with dry-run operations, ConfigMap handling, revision checks, finalization, and saved-dashboard verification. The documentation describes rendering, deployment, and recovery workflows.

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Refactor

Sequence Diagram(s)

sequenceDiagram
  participant DashboardCLI
  participant GrafanaAPI
  participant KubernetesAPI
  DashboardCLI->>GrafanaAPI: validate dashboard operations
  DashboardCLI->>KubernetesAPI: validate resource operations
  DashboardCLI->>KubernetesAPI: apply ConfigMap checkpoint and scrape resources
  DashboardCLI->>GrafanaAPI: save and verify dashboards
Loading
Security architecture risk: Moderate · up to 6dd9f

The refactor removes helpers that statistics-enabled inference workers still call during startup and reporting. This can prevent an affected deployment from serving requests, rather than merely disabling metric export. The configuration is disabled by default, which limits exposure.

Retained concerns

  • High · reliability · observed: The refactor deletes _stats_scheduler_mode and _append_stats_rows while production callers remain. When iteration statistics are enabled, executor initialization calls _emit_initial_stats, which reaches the missing _stats_scheduler_mode through _append_iter_stats and raises AttributeError before serving begins. Rebind reaches the same failure and invokes shutdown. The ADP reporting path also retains calls to both deleted helpers, so restoring only the scheduler helper leaves another broken reporting transition. This couples optional telemetry to availability of the entire configured worker, not just its metrics endpoint. Both helpers existed in the comparison base; iteration statistics remain disabled by default.
Security review details

Security Blast Radius

  • observed — Dashboard deployment uses the invoking operator's existing Grafana and Kubernetes authority. Configuration selects the executable, cluster context, namespaces, credential references and dashboard identities; the CLI does not create a reduced-privilege identity. Its configuration therefore belongs to the administrative trust boundary, not the inference-request boundary.

Trust Boundaries and Controls

  • inferred — The inspected HTTP metrics change does not establish a new attacker-controlled source or authentication bypass: records originate from the same candidate metric dictionary, and legacy logging methods remain normalization adapters to the same exposure functions. This conclusion is bounded to the changed collection and consumer paths, not all existing endpoint security.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "[None][refactor] Unify performance collection and exposure" follows the repository template with the [None] ticket tag and the [refactor] type. It states the main change: a shared performan…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description follows the repository template in substance. It has a Description section that explains the refactor, a Validation section, and detailed notes on runtime results and CI. The title lin…
Full details: Title check

Explanation

The title "[None][refactor] Unify performance collection and exposure" follows the repository template with the [None] ticket tag and the [refactor] type. It states the main change: a shared performance collector and exposure layer, with logger and Prometheus adapters, covered by the raw summary (PerfMetricsCollector, PerfMetricsRecord, LoggerExposure, PrometheusExposure). It is concise and specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description follows the repository template in substance. It has a Description section that explains the refactor, a Validation section, and detailed notes on runtime results and CI. The title line and the template's Test Coverage and PR Checklist sections are not clearly filled in. The description says runtime Python tests and collector-overhead benchmarks were not run, then later reports CI-container test runs with pass counts. Those statements are consistent with each other, since the later runs were on a target container. Several items are still pending, including fresh H100 and SBSA CI results and a follow-up PR that depends on this change. The description is mostly complete, so the check passes.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85088 [ run ] triggered by Bot. Commit: df2eb90 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85076 [ run ] completed with state ABORTED. Commit: 801a5c2

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85088 [ run ] completed with state SUCCESS. Commit: df2eb90
/LLM/main/L0_MergeRequest_PR pipeline #70426 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@reasonsolo

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85147 [ run ] triggered by Bot. Commit: df2eb90 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85147 [ run ] completed with state SUCCESS. Commit: df2eb90
/LLM/main/L0_MergeRequest_PR pipeline #70482 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@reasonsolo

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85188 [ run ] triggered by Bot. Commit: af72c4b Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85188 [ run ] completed with state SUCCESS. Commit: af72c4b
/LLM/main/L0_MergeRequest_PR pipeline #70516 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@reasonsolo

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@reasonsolo

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@reasonsolo

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85315 [ run ] triggered by Bot. Commit: 48fc18c Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85318 [ run ] triggered by Bot. Commit: 48fc18c Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85315 [ run ] completed with state ABORTED. Commit: 48fc18c

Link to invocation

@reasonsolo
reasonsolo disabled auto-merge November 17, 2026 04:44
@reasonsolo

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85366 [ run ] triggered by Bot. Commit: f33bd31 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85318 [ run ] completed with state ABORTED. Commit: 48fc18c

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85366 [ run ] completed with state SUCCESS. Commit: f33bd31
/LLM/main/L0_MergeRequest_PR pipeline #70677 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@reasonsolo

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85485 [ run ] triggered by Bot. Commit: f33bd31 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85485 [ run ] completed with state SUCCESS. Commit: f33bd31
/LLM/main/L0_MergeRequest_PR pipeline #70760 completed with status: 'SUCCESS'

CI Report

Link to invocation

@reasonsolo
reasonsolo merged commit 61d998a into NVIDIA:main Nov 17, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants