Repository navigation
docs: align local metrics testing, helm, and gateway readmes - #1638
VLukiantsev merged 3 commits into
Conversation
|
/gemini review |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
- 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
c799c7e to
2f12051
Compare
- 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
fabebcf to
b5a66c2
Compare
There was a problem hiding this comment.
🤖 Incremental PR Approval
Clean rebase detected with zero semantic patch lines changed.
Preserving prior approval by @janzak-dev on commit 2f12051.
- 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
b5a66c2 to
86ede17
Compare
There was a problem hiding this comment.
🤖 Incremental PR Approval
Clean rebase detected with zero semantic patch lines changed.
Preserving prior approval by @janzak-dev on commit 2f12051.
- 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
There was a problem hiding this comment.
🤖 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.
- 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
9edecb3 to
383fd2c
Compare
There was a problem hiding this comment.
🤖 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.
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
692f409
383fd2c to
692f409
Compare
There was a problem hiding this comment.
🤖 Incremental PR Approval
Clean rebase detected with zero semantic patch lines changed.
Preserving prior approval by @janzak-dev on commit 383fd2c.
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, andcmd/ingestion_gateway/README.md) with current Kubernetes resource names, namespaces, CLI flags/environment variables, andxmc-diag/ingestion-gatewaycontracts.Motivation & Context
Executing the developer GKE metrics pipeline walkthrough in
deploy/local/README.mdexposed several pre-xmc-metrics/ pre-Component discrepancies (svc/ingestion-gatewayinstead ofsvc/ingestion-gateway-service, ClickHouse referenced in-n xmcinstead ofstatefulset/clickhouse -n xmc-metrics, outdatedxmc-diagoutput and{"valid_count":3}JSON response key, andargMax(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 onenable_metrics/--enable-componentsremoval without merge conflicts.Key Changes
deploy/local/README.md: Documentsetup_metrics_addons.sh,xmc-profile(redpanda,clickhouse,ingestion-gateway) installation, andkubectl wait/kubectl rollout statussteps for asynchronousxmc-bridgeactuation; update diagram and port-forward /kubectl exectargets tosvc/redpanda(-n xmc),svc/ingestion-gateway-service(-n xmc), andstatefulset/clickhouse(-n xmc-metrics); align the 5-componentxmc-diagsample output andPOST /api/v1/metricsresponse ({"count":3,"status":"accepted"}); and update the deduplication query toargMax(metric_value, (timestamp, created_at))to matchinternal/dashboard/dataengine/summary_box.go.examples/metrics_job/README.md&examples/chart_artifact_job/README.md: Update ClickHouse verificationkubectl execcommands fromdeployment/clickhouse -n xmc(default.xmc_metrics) tostatefulset/clickhouse -n xmc-metrics(xmc_metrics).docs/architecture/use_cases.md: Update local port-forward example fromsvc/ingestion-gatewaytosvc/ingestion-gateway-service -n xmc.deploy/helm/README.md: Add accuratexmc_bridge,dashboard_service, androdrows to the umbrella chartArchitecture Overviewtable and includedashboardServiceDeployment,rodDeployment, and mandatorycomponentsDeploymentruntime settings inMicroservice Deployment Settings.cmd/ingestion_gateway/README.md: Document-components_namespaceandCOMPONENTS_NAMESPACE(including kubeconfig fallback, per-field CR override/fallback semantics, andgetEnvOrDefaultprecedence).Assumptions
hpoandvizierlines in the 5-componentxmc-diagsample output and the fresh-clusterkubectl wait/kubectl rollout statusstep (3b) match live cluster output — derived directly fromdeploy/profiles/stable-2026a/templates/components.yamlandtools/xmc-diag/{components,formatter}.gorather than re-running from scratch on a clean cluster (the earlier live GKE walkthrough used a pre-existingxmc-profilerelease with 3 CRs) — ifstable-2026acatalog defaults orxmc-diagtext formatting change, the sample output block indeploy/local/README.mdwould drift without affecting runtime behavior.deploy/helm/README.md,cmd/ingestion_gateway/README.md,examples/chart_artifact_job/README.md, anddocs/architecture/use_cases.mdmatch 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
./.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 thedeploy/local/README.mdport-forward,xmc-diag,POST /api/v1/metrics, and ClickHouseargMaxverification commands.deploy-gke.yml+xmc-profile+verify_xmc.py): https://github.com/google/xmc/actions/runs/42817771822 (success)success)Related Issues / Bugs
N/A
TAG=agy
CONV=0d1e1e85-47f9-49da-a36c-92f916ef853f