Skip to content

docs: align local metrics testing, helm, and gateway readmes - #1638

Merged
VLukiantsev merged 3 commits into
feat/remove-enable-metrics-and-cli-flagsfrom
docs/align-metrics-and-helm-readmes
Nov 12, 2026
Merged

VLukiantsev merged 3 commits into
feat/remove-enable-metrics-and-cli-flagsfrom
docs/align-metrics-and-helm-readmes

Conversation

@VLukiantsev

@VLukiantsev VLukiantsev commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Aligns developer metrics testing guides and service/chart documentation (deploy/local/README.md, examples/metrics_job/README.md, examples/chart_artifact_job/README.md, docs/architecture/use_cases.md, deploy/helm/README.md, and cmd/ingestion_gateway/README.md) with current Kubernetes resource names, namespaces, CLI flags/environment variables, and xmc-diag / ingestion-gateway contracts.

Motivation & Context

Executing the developer GKE metrics pipeline walkthrough in deploy/local/README.md exposed several pre-xmc-metrics / pre-Component discrepancies (svc/ingestion-gateway instead of svc/ingestion-gateway-service, ClickHouse referenced in -n xmc instead of statefulset/clickhouse -n xmc-metrics, outdated xmc-diag output and {"valid_count":3} JSON response key, and argMax(metric_value, created_at) tie-breaking when records land in the same 1-second ClickHouse Kafka flush). Splitting these documentation fixes into a dedicated stacked PR keeps the preceding flag-removal PR (#1637) focused strictly on enable_metrics / --enable-components removal without merge conflicts.

Key Changes

  • deploy/local/README.md: Document setup_metrics_addons.sh, xmc-profile (redpanda, clickhouse, ingestion-gateway) installation, and kubectl wait / kubectl rollout status steps for asynchronous xmc-bridge actuation; update diagram and port-forward / kubectl exec targets to svc/redpanda (-n xmc), svc/ingestion-gateway-service (-n xmc), and statefulset/clickhouse (-n xmc-metrics); align the 5-component xmc-diag sample output and POST /api/v1/metrics response ({"count":3,"status":"accepted"}); and update the deduplication query to argMax(metric_value, (timestamp, created_at)) to match internal/dashboard/dataengine/summary_box.go.
  • examples/metrics_job/README.md & examples/chart_artifact_job/README.md: Update ClickHouse verification kubectl exec commands from deployment/clickhouse -n xmc (default.xmc_metrics) to statefulset/clickhouse -n xmc-metrics (xmc_metrics).
  • docs/architecture/use_cases.md: Update local port-forward example from svc/ingestion-gateway to svc/ingestion-gateway-service -n xmc.
  • deploy/helm/README.md: Add accurate xmc_bridge, dashboard_service, and rod rows to the umbrella chart Architecture Overview table and include dashboardServiceDeployment, rodDeployment, and mandatory componentsDeployment runtime settings in Microservice Deployment Settings.
  • cmd/ingestion_gateway/README.md: Document -components_namespace and COMPONENTS_NAMESPACE (including kubeconfig fallback, per-field CR override/fallback semantics, and getEnvOrDefault precedence).

Assumptions

  • Disabled hpo and vizier lines in the 5-component xmc-diag sample output and the fresh-cluster kubectl wait / kubectl rollout status step (3b) match live cluster output — derived directly from deploy/profiles/stable-2026a/templates/components.yaml and tools/xmc-diag/{components,formatter}.go rather than re-running from scratch on a clean cluster (the earlier live GKE walkthrough used a pre-existing xmc-profile release with 3 CRs) — if stable-2026a catalog defaults or xmc-diag text formatting change, the sample output block in deploy/local/README.md would drift without affecting runtime behavior.
  • Service dependency and flag/env fallback rows in deploy/helm/README.md, cmd/ingestion_gateway/README.md, examples/chart_artifact_job/README.md, and docs/architecture/use_cases.md match deployed behavior — derived via static source inspection (api/protos/rod/api.proto, cmd/rod_data_provider/main.go, cmd/dashboard_service/main.go, cmd/ingestion_gateway/, pkg/components/crreader/reader.go, deploy/helm/values.yaml) rather than exercising every fallback branch live — if an uninspected Helm wrapper or environment override alters those defaults, operator documentation could omit a secondary dependency.

Verification & Testing

  • Commands Executed: ./.githooks/pre-commit, ./tools/lint/check_agent_doc_paths.py, ./tools/run_affected_tests.py --base-ref origin/feat/remove-enable-metrics-and-cli-flags, plus live GKE execution of the deploy/local/README.md port-forward, xmc-diag, POST /api/v1/metrics, and ClickHouse argMax verification commands.
  • Coverage & Test Status: All pre-commit hooks, relative link/path checks, and affected unit tests pass cleanly.
  • Stack-Wide GitHub Actions Nightly Verification:

Related Issues / Bugs

N/A

TAG=agy
CONV=0d1e1e85-47f9-49da-a36c-92f916ef853f

@VLukiantsev
VLukiantsev added this pull request to stack #1634 November 10, 2026 09:51
@VLukiantsev

Copy link
Copy Markdown
Collaborator Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the documentation across several README files to reflect architectural changes, including the introduction of new services (xmc_bridge, dashboard_service, rod), the -components_namespace flag in the ingestion gateway, and updated developer cluster testing workflows with separate namespaces (xmc and xmc-metrics). The feedback suggests removing the default. database prefix from a ClickHouse verification query in examples/metrics_job/README.md to maintain consistency with other documented queries.

Comment thread examples/metrics_job/README.md Resolved

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates documentation and deployment procedures for XManager (XMC) v2, including adding new microservices, adjusting namespace configurations for Redpanda and ClickHouse, and refining diagnostic output and verification commands. A review comment correctly identified an invalid Helm flag in the updated documentation, which should be corrected to ensure the commands function as expected.

Comment thread deploy/local/README.md Resolved
@VLukiantsev
VLukiantsev marked this pull request as ready for review November 10, 2026 10:15
Comment thread deploy/helm/README.md Resolved
Comment thread deploy/helm/README.md Resolved
Comment thread deploy/helm/README.md Resolved
Comment thread deploy/local/README.md Resolved
Comment thread deploy/local/README.md Resolved
Comment thread cmd/ingestion_gateway/README.md Resolved
Comment thread cmd/ingestion_gateway/README.md Resolved
Comment thread cmd/ingestion_gateway/README.md Resolved
Comment thread cmd/ingestion_gateway/README.md Resolved
Comment thread cmd/ingestion_gateway/README.md Resolved
VLukiantsev added a commit that referenced this pull request Nov 10, 2026
- Omit `default.` database prefix in ClickHouse verification queries in `examples/metrics_job/README.md` and `examples/chart_artifact_job/README.md`, and update `examples/chart_artifact_job/README.md` (`statefulset/clickhouse` in `xmc-metrics`) and `docs/architecture/use_cases.md` (`svc/ingestion-gateway-service` in `xmc`) to eliminate remaining stale resource targets.
- Fix `xmc_bridge` (CMS naming and non-experimental 1P component phrasing), `dashboard_service` (Kubernetes API, Cloud Identity, and static fallback), `rod` (Resource Observability Dashboard expansion, Kueue CRs, and `experiment-db` dependencies), and `Microservice Deployment Settings` (`dashboardServiceDeployment`, `rodDeployment`, and mandatory `componentsDeployment`) in `deploy/helm/README.md`.
- Update `deploy/local/README.md` with `svc/redpanda` in the architecture diagram, `kubectl wait` / `kubectl rollout status` for asynchronous `xmc-bridge` actuation of `ingestion-gateway`, all five catalog `Component` CRs (`hpo` and `vizier` disabled) in the `xmc-diag` sample output, and event-time `(timestamp, created_at)` deduplication matching `internal/dashboard/dataengine/summary_box.go`.
- Clarify `-components_namespace` kubeconfig/per-field fallback semantics and add `COMPONENTS_NAMESPACE` to the `Environment Variables` table in `cmd/ingestion_gateway/README.md`.

Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)

TAG=agy
CONV=0d1e1e85-47f9-49da-a36c-92f916ef853f
@VLukiantsev
VLukiantsev force-pushed the docs/align-metrics-and-helm-readmes branch from c799c7e to 2f12051 Compare November 10, 2026 12:30
@VLukiantsev VLukiantsev added the priority::1-critical needs to be review and merged quickly. label Nov 10, 2026
VLukiantsev added a commit that referenced this pull request Nov 10, 2026
- Omit `default.` database prefix in ClickHouse verification queries in `examples/metrics_job/README.md` and `examples/chart_artifact_job/README.md`, and update `examples/chart_artifact_job/README.md` (`statefulset/clickhouse` in `xmc-metrics`) and `docs/architecture/use_cases.md` (`svc/ingestion-gateway-service` in `xmc`) to eliminate remaining stale resource targets.
- Fix `xmc_bridge` (CMS naming and non-experimental 1P component phrasing), `dashboard_service` (Kubernetes API, Cloud Identity, and static fallback), `rod` (Resource Observability Dashboard expansion, Kueue CRs, and `experiment-db` dependencies), and `Microservice Deployment Settings` (`dashboardServiceDeployment`, `rodDeployment`, and mandatory `componentsDeployment`) in `deploy/helm/README.md`.
- Update `deploy/local/README.md` with `svc/redpanda` in the architecture diagram, `kubectl wait` / `kubectl rollout status` for asynchronous `xmc-bridge` actuation of `ingestion-gateway`, all five catalog `Component` CRs (`hpo` and `vizier` disabled) in the `xmc-diag` sample output, and event-time `(timestamp, created_at)` deduplication matching `internal/dashboard/dataengine/summary_box.go`.
- Clarify `-components_namespace` kubeconfig/per-field fallback semantics and add `COMPONENTS_NAMESPACE` to the `Environment Variables` table in `cmd/ingestion_gateway/README.md`.

Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)

TAG=agy
CONV=0d1e1e85-47f9-49da-a36c-92f916ef853f
@VLukiantsev
VLukiantsev force-pushed the docs/align-metrics-and-helm-readmes branch from fabebcf to b5a66c2 Compare November 10, 2026 16:43
github-actions[bot]
github-actions Bot previously approved these changes Nov 10, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Incremental PR Approval

Clean rebase detected with zero semantic patch lines changed.

Preserving prior approval by @janzak-dev on commit 2f12051.

VLukiantsev added a commit that referenced this pull request Nov 10, 2026
- Omit `default.` database prefix in ClickHouse verification queries in `examples/metrics_job/README.md` and `examples/chart_artifact_job/README.md`, and update `examples/chart_artifact_job/README.md` (`statefulset/clickhouse` in `xmc-metrics`) and `docs/architecture/use_cases.md` (`svc/ingestion-gateway-service` in `xmc`) to eliminate remaining stale resource targets.
- Fix `xmc_bridge` (CMS naming and non-experimental 1P component phrasing), `dashboard_service` (Kubernetes API, Cloud Identity, and static fallback), `rod` (Resource Observability Dashboard expansion, Kueue CRs, and `experiment-db` dependencies), and `Microservice Deployment Settings` (`dashboardServiceDeployment`, `rodDeployment`, and mandatory `componentsDeployment`) in `deploy/helm/README.md`.
- Update `deploy/local/README.md` with `svc/redpanda` in the architecture diagram, `kubectl wait` / `kubectl rollout status` for asynchronous `xmc-bridge` actuation of `ingestion-gateway`, all five catalog `Component` CRs (`hpo` and `vizier` disabled) in the `xmc-diag` sample output, and event-time `(timestamp, created_at)` deduplication matching `internal/dashboard/dataengine/summary_box.go`.
- Clarify `-components_namespace` kubeconfig/per-field fallback semantics and add `COMPONENTS_NAMESPACE` to the `Environment Variables` table in `cmd/ingestion_gateway/README.md`.

Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)

TAG=agy
CONV=0d1e1e85-47f9-49da-a36c-92f916ef853f
@VLukiantsev
VLukiantsev force-pushed the docs/align-metrics-and-helm-readmes branch from b5a66c2 to 86ede17 Compare November 10, 2026 17:17
github-actions[bot]
github-actions Bot previously approved these changes Nov 10, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Incremental PR Approval

Clean rebase detected with zero semantic patch lines changed.

Preserving prior approval by @janzak-dev on commit 2f12051.

VLukiantsev added a commit that referenced this pull request Nov 10, 2026
- Distinguish *Deployment toggles, matching runtime blocks, top-level
  *_custom_image keys, and mandatory componentsDeployment runtime keys in
  deploy/helm/README.md §2.
- Mark the pre-existing legacy actuator YAML block with a TODO marker.

Comment link: #1638 (comment)

TAG=agy
CONV=632bffa5-726f-467c-9524-87495fe2dfb2
github-actions[bot]
github-actions Bot previously approved these changes Nov 10, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Incremental PR Approval

PR author is a code owner and changes since last approval (3 lines) are within the 50-line grace delta.

Preserving prior approval by @janzak-dev on commit 2f12051.

VLukiantsev added a commit that referenced this pull request Nov 12, 2026
- Omit `default.` database prefix in ClickHouse verification queries in `examples/metrics_job/README.md` and `examples/chart_artifact_job/README.md`, and update `examples/chart_artifact_job/README.md` (`statefulset/clickhouse` in `xmc-metrics`) and `docs/architecture/use_cases.md` (`svc/ingestion-gateway-service` in `xmc`) to eliminate remaining stale resource targets.
- Fix `xmc_bridge` (CMS naming and non-experimental 1P component phrasing), `dashboard_service` (Kubernetes API, Cloud Identity, and static fallback), `rod` (Resource Observability Dashboard expansion, Kueue CRs, and `experiment-db` dependencies), and `Microservice Deployment Settings` (`dashboardServiceDeployment`, `rodDeployment`, and mandatory `componentsDeployment`) in `deploy/helm/README.md`.
- Update `deploy/local/README.md` with `svc/redpanda` in the architecture diagram, `kubectl wait` / `kubectl rollout status` for asynchronous `xmc-bridge` actuation of `ingestion-gateway`, all five catalog `Component` CRs (`hpo` and `vizier` disabled) in the `xmc-diag` sample output, and event-time `(timestamp, created_at)` deduplication matching `internal/dashboard/dataengine/summary_box.go`.
- Clarify `-components_namespace` kubeconfig/per-field fallback semantics and add `COMPONENTS_NAMESPACE` to the `Environment Variables` table in `cmd/ingestion_gateway/README.md`.

Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)

TAG=agy
CONV=0d1e1e85-47f9-49da-a36c-92f916ef853f
VLukiantsev added a commit that referenced this pull request Nov 12, 2026
- Distinguish *Deployment toggles, matching runtime blocks, top-level
  *_custom_image keys, and mandatory componentsDeployment runtime keys in
  deploy/helm/README.md §2.
- Mark the pre-existing legacy actuator YAML block with a TODO marker.

Comment link: #1638 (comment)

TAG=agy
CONV=632bffa5-726f-467c-9524-87495fe2dfb2
@VLukiantsev
VLukiantsev force-pushed the docs/align-metrics-and-helm-readmes branch from 9edecb3 to 383fd2c Compare November 12, 2026 09:20
github-actions[bot]
github-actions Bot previously approved these changes Nov 12, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Incremental PR Approval

PR author is a code owner and changes since last approval (3 lines) are within the 50-line grace delta.

Preserving prior approval by @janzak-dev on commit 2f12051.

janzak-dev
janzak-dev previously approved these changes Nov 12, 2026
Update developer metrics walkthroughs and chart/service READMEs caught during
live GKE manual verification:
- deploy/local/README.md: document setup_metrics_addons.sh + xmc-profile
  prerequisites, fix svc/ingestion-gateway-service and xmc-metrics ClickHouse
  namespace/StatefulSet names, align xmc-diag sample output and {"count":3,"status":"accepted"}
  response payload, and tie-break argMax deduplication on (created_at, timestamp).
- examples/metrics_job/README.md: point ClickHouse verification exec at
  statefulset/clickhouse in xmc-metrics.
- deploy/helm/README.md: list xmc_bridge, dashboard_service, and rod in the
  umbrella chart Architecture Overview table.
- cmd/ingestion_gateway/README.md: document the -components_namespace CLI flag.

TAG=agy
CONV=0d1e1e85-47f9-49da-a36c-92f916ef853f
- Omit `default.` database prefix in ClickHouse verification queries in `examples/metrics_job/README.md` and `examples/chart_artifact_job/README.md`, and update `examples/chart_artifact_job/README.md` (`statefulset/clickhouse` in `xmc-metrics`) and `docs/architecture/use_cases.md` (`svc/ingestion-gateway-service` in `xmc`) to eliminate remaining stale resource targets.
- Fix `xmc_bridge` (CMS naming and non-experimental 1P component phrasing), `dashboard_service` (Kubernetes API, Cloud Identity, and static fallback), `rod` (Resource Observability Dashboard expansion, Kueue CRs, and `experiment-db` dependencies), and `Microservice Deployment Settings` (`dashboardServiceDeployment`, `rodDeployment`, and mandatory `componentsDeployment`) in `deploy/helm/README.md`.
- Update `deploy/local/README.md` with `svc/redpanda` in the architecture diagram, `kubectl wait` / `kubectl rollout status` for asynchronous `xmc-bridge` actuation of `ingestion-gateway`, all five catalog `Component` CRs (`hpo` and `vizier` disabled) in the `xmc-diag` sample output, and event-time `(timestamp, created_at)` deduplication matching `internal/dashboard/dataengine/summary_box.go`.
- Clarify `-components_namespace` kubeconfig/per-field fallback semantics and add `COMPONENTS_NAMESPACE` to the `Environment Variables` table in `cmd/ingestion_gateway/README.md`.

Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)
Comment link: #1638 (comment)

TAG=agy
CONV=0d1e1e85-47f9-49da-a36c-92f916ef853f
- Distinguish *Deployment toggles, matching runtime blocks, top-level
  *_custom_image keys, and mandatory componentsDeployment runtime keys in
  deploy/helm/README.md §2.
- Mark the pre-existing legacy actuator YAML block with a TODO marker.

Comment link: #1638 (comment)

TAG=agy
CONV=632bffa5-726f-467c-9524-87495fe2dfb2
@VLukiantsev
VLukiantsev force-pushed the docs/align-metrics-and-helm-readmes branch from 383fd2c to 692f409 Compare November 12, 2026 10:00

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Incremental PR Approval

Clean rebase detected with zero semantic patch lines changed.

Preserving prior approval by @janzak-dev on commit 383fd2c.

@VLukiantsev
VLukiantsev added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit 6525bda Nov 12, 2026
25 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority::1-critical needs to be review and merged quickly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants