Skip to content

docs: fill v1.3 documentation gaps and fix stale defaults - #3019

Merged
killme2008 merged 3 commits into
mainfrom
docs/v1.3-doc-gaps
Nov 5, 2026
Merged

killme2008 merged 3 commits into
mainfrom
docs/v1.3-doc-gaps

Conversation

@killme2008

@killme2008 killme2008 commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

What changed

Fills user-facing gaps for GreptimeDB v1.3 and corrects stale content in the same pages.

v1.3 behavior that was missing or wrong:

  • upgrade.md: adds the OTLP job label change (<service.namespace>/<service.name>), PromQL vector matching changes, and strict bulk insert validation; the checklist now covers prom_validation_mode and the Datanode-before-Frontend order.
  • opentelemetry.md: documents how job and instance are derived from resource attributes.
  • TWCS: documents the active_window.* and inactive_window.* options in compaction.md, create.md, and alter.md. The trigger_file_num = 3 walkthrough and diagram are removed because the active window now triggers on L0 file count only.
  • configuration.md: write_retry retry semantics (no exactly-once; append-only tables can get duplicates); experimental_series_scan_v2 defaults to false.
  • AI functions ship in v1.3.0 release binaries, not only source builds.
  • Java SDK: Bulk Write no longer requires an exact schema match.
  • MCP: updated to greptimedb-mcp-server v0.6.1, including the semantic graph tools, the full option list, and write mode now gating pipeline and dashboard changes.
  • Enterprise alert rules from docs: add alert rules to monitoring key metrics #2995 are backported to 1.3. In 1.3 and nightly, the greptime_prom_store_pending_rows rule no longer compares the cross-batch total with the per-batch max_batch_rows, and the up rule notes that the job name depends on the scrape configuration.

Stale defaults in configuration.md, checked against v1.3.0 config/config.md and source: runtime thread minimums, num_workers, write buffer and cache sizes, write_cache_ttl, grpc.flight_compression, metasrv data_home, grpc.server_addr, datanode.client.connect_timeout, and wal.auto_prune_interval. Version 1.2 has several of the same wrong defaults and is not changed here.

Scope

  • Documentation versions: Nightly, 1.3
  • Languages: English, Chinese

Verification

git diff --check, DOC_LANG=en pnpm check:links, DOC_LANG=zh pnpm check:links.

Checklist

  • I verified the content against the applicable GreptimeDB version.
  • I updated the relevant documentation versions and languages, or explained why not.
  • I checked changed links and anchors.
  • I updated navigation when the document structure changed.

@killme2008
killme2008 marked this pull request as ready for review November 4, 2026 12:18
@killme2008
killme2008 requested review from daviderli614, discord9, evenyag and v0y4g3r and a balanced review from Copilot November 4, 2026 12:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The pending-row alert guidance compares a cross-worker aggregate with a per-batch flush threshold, risking false alerts during normal operation in both English and Chinese documentation.

1 open issue
What changed in this PR

Updates the English and Chinese Nightly and v1.3 documentation to clarify release behavior, correct configuration defaults, and expand integration guidance.

Changes:

  • Documents upgrade requirements, OTLP labels, bulk-write validation, retry semantics, and active/inactive TWCS options.
  • Refreshes MCP v0.6.1 guidance and clarifies AI function availability in release binaries.
  • Backports enterprise monitoring reference alerts from #2995 to v1.3.
File Description
versioned_docs/​version-1.3/​user-guide/​integrations/​mcp.md Updates MCP tools, configuration, and write-mode guidance.
versioned_docs/​version-1.3/​user-guide/​ingest-data/​for-observability/​opentelemetry.md Explains resource-derived job and instance labels.
versioned_docs/​version-1.3/​user-guide/​ingest-data/​for-iot/​grpc-sdks/​java.md Corrects Bulk Write schema requirements.
versioned_docs/​version-1.3/​user-guide/​deployments-administration/​upgrade.md Adds compatibility changes and upgrade checklist items.
versioned_docs/​version-1.3/​user-guide/​deployments-administration/​manage-data/​compaction.md Explains TWCS windows and replaces the stale walkthrough.
versioned_docs/​version-1.3/​user-guide/​deployments-administration/​configuration.md Corrects defaults and explains write-retry limits.
versioned_docs/​version-1.3/​reference/​sql/​functions/​ai/​overview.md Clarifies release-binary availability and activation.
versioned_docs/​version-1.3/​reference/​sql/​create.md Adds active/inactive TWCS table options.
versioned_docs/​version-1.3/​reference/​sql/​alter.md Adds TWCS options for database and table changes.
versioned_docs/​version-1.3/​enterprise/​deployments-administration/​monitoring/​key-metrics.md Backports reference alerts and clarifies external configuration.
i18n/​zh/​docusaurus-plugin-content-docs/​version-1.3/​user-guide/​integrations/​mcp.md Updates Chinese MCP tools and security guidance.
i18n/​zh/​docusaurus-plugin-content-docs/​version-1.3/​user-guide/​ingest-data/​for-observability/​opentelemetry.md Explains resource-derived labels in Chinese.
i18n/​zh/​docusaurus-plugin-content-docs/​version-1.3/​user-guide/​ingest-data/​for-iot/​grpc-sdks/​java.md Corrects Chinese Bulk Write schema guidance.
i18n/​zh/​docusaurus-plugin-content-docs/​version-1.3/​user-guide/​deployments-administration/​upgrade.md Adds Chinese compatibility and rollout guidance.
i18n/​zh/​docusaurus-plugin-content-docs/​version-1.3/​user-guide/​deployments-administration/​manage-data/​compaction.md Updates Chinese TWCS window and trigger explanations.
i18n/​zh/​docusaurus-plugin-content-docs/​version-1.3/​user-guide/​deployments-administration/​configuration.md Aligns Chinese defaults and retry semantics.
i18n/​zh/​docusaurus-plugin-content-docs/​version-1.3/​reference/​sql/​functions/​ai/​overview.md Clarifies AI availability and activation in Chinese.
i18n/​zh/​docusaurus-plugin-content-docs/​version-1.3/​reference/​sql/​create.md Adds Chinese TWCS table-option descriptions.
i18n/​zh/​docusaurus-plugin-content-docs/​version-1.3/​reference/​sql/​alter.md Adds Chinese TWCS alteration options.
i18n/​zh/​docusaurus-plugin-content-docs/​version-1.3/​enterprise/​deployments-administration/​monitoring/​key-metrics.md Backports Chinese monitoring reference alerts.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​user-guide/​integrations/​mcp.md Updates Chinese Nightly MCP guidance.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​user-guide/​ingest-data/​for-observability/​opentelemetry.md Documents OTLP label derivation in Chinese Nightly.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​user-guide/​ingest-data/​for-iot/​grpc-sdks/​java.md Corrects Chinese Nightly Bulk Write requirements.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​user-guide/​deployments-administration/​upgrade.md Aligns Chinese Nightly upgrade guidance.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​user-guide/​deployments-administration/​manage-data/​compaction.md Updates Chinese Nightly TWCS explanations.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​user-guide/​deployments-administration/​configuration.md Corrects Chinese Nightly defaults and retry guidance.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​reference/​sql/​functions/​ai/​overview.md Updates Chinese Nightly AI availability guidance.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​reference/​sql/​create.md Adds Chinese Nightly TWCS creation options.
i18n/​zh/​docusaurus-plugin-content-docs/​current/​reference/​sql/​alter.md Adds Chinese Nightly TWCS alteration options.
docs/​user-guide/​integrations/​mcp.md Updates Nightly MCP tools, options, and safeguards.
docs/​user-guide/​ingest-data/​for-observability/​opentelemetry.md Documents OTLP resource-to-label mapping.
docs/​user-guide/​ingest-data/​for-iot/​grpc-sdks/​java.md Corrects Nightly Bulk Write schema guidance.
docs/​user-guide/​deployments-administration/​upgrade.md Adds v1.3 compatibility and rollout requirements.
docs/​user-guide/​deployments-administration/​manage-data/​compaction.md Documents TWCS windows and removes the stale walkthrough.
docs/​user-guide/​deployments-administration/​configuration.md Corrects Nightly defaults and explains retry limitations.
docs/​reference/​sql/​functions/​ai/​overview.md Clarifies AI release availability and startup instructions.
docs/​reference/​sql/​create.md Adds TWCS window-specific creation options.
docs/​reference/​sql/​alter.md Adds TWCS window-specific alteration options.

Review effort: Balanced

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Deploying greptime-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 123b68d
Status: ✅  Deploy successful!
Preview URL: https://f6e5b8ff.greptime-docs.pages.dev
Branch Preview URL: https://docs-v1-3-doc-gaps.greptime-docs.pages.dev

View logs

@daviderli614 daviderli614 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this thorough PR — I reviewed the full diff across all four copies (EN/ZH × current/version-1.3) and the changes are accurate, consistently applied, and well cross-referenced. No blocking issues; leaving a few non-blocking comments below.

Worth addressing

  1. Orphaned diagram asset — All four references to compaction-trigger-file-num.png are removed (EN/ZH × current/1.3), but static/compaction-trigger-file-num.png still exists in the repo. Please delete the asset in this PR (or confirm it's linked from somewhere else).

  2. write_cache_ttl → Unset — Changing the default from 8h to Unset drops the concrete value and doesn't state what "unset" means (no TTL / never expire, or some implicit default?). One sentence clarifying the unset behavior would help, since cache-eviction semantics matter here.

  3. grpc.server_addr (metasrv) → Unset — The description no longer explains what happens when it's unset, and it now sits next to the top-level server_addr (127.0.0.1:3002). The datanode grpc.server_addr row documents its auto-detect fallback; metasrv should get the same treatment so readers can tell which key wins.

  4. flight_compression default none → arrow_ipc — This is a user-visible default (lz4 Arrow IPC compression on by default). If it's a genuine v1.3 behavior change rather than just a stale-doc fix, consider a one-line callout in the upgrade guide. Worth a quick double-check against config/config.md.

Nits

  1. OTLP job label change — Good table entry. Since it requires updating dashboard selectors and alert rules, consider also adding a checklist item under "Before upgrading" alongside the TSID item.

  2. num_workers "half of the CPU cores, rounded up" — Phrasing differs from the neighboring Auto rows ("1/2 of cpu cores", no "rounded up"). Pick one for consistency.

  3. TWCS active-window definition — "the window of the SST file with the highest sequence number" is a bit opaque; the parenthetical "most recently flushed data" already carries the meaning, so consider dropping or glossing "sequence number".

  4. up{job="greptimedb-instance"} — The hardcoded job name assumes a specific scrape config; a brief note that it should match the scrape job name would prevent copy-paste confusion.

Nice work in particular on the write_retry semantics (exactly-once caveat, append-only duplicates) and the MCP v0.6.1 rewrite (write-mode now correctly gating pipeline/dashboard tools). LGTM once the asset cleanup and the write_cache_ttl/grpc.server_addr clarifications are addressed.

@killme2008
killme2008 merged commit 6ba3014 into main Nov 5, 2026
8 checks passed
@killme2008
killme2008 deleted the docs/v1.3-doc-gaps branch November 5, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants