Skip to content

Conversation

@paulohtb6
Copy link
Collaborator

@paulohtb6 paulohtb6 commented Dec 2, 2025

Description

Resolves https://redpandadata.atlassian.net/browse/
Review deadline:

Page previews

What's new
Metrics reference
Shadowing monitor

Checks

  • New feature
  • Content gap
  • Support Follow-up
  • Small fix (typos, links, copyedits, etc)

@paulohtb6 paulohtb6 requested a review from a team as a code owner December 2, 2025 15:42
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 2, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

📝 Walkthrough

Walkthrough

This PR updates documentation across three files. The Antora playbook configuration is modified to source cloud-docs from a specific feature branch instead of main. The disaster recovery shadowing monitor documentation is expanded with cross-references to metric documentation and additional best practices guidance. The public metrics reference documentation receives a new Shadow Link metrics section describing eight metrics with their types and labels.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Areas requiring attention:

  • The public-metrics-reference.adoc file shows the Shadow Link metrics block added twice, indicating a potential duplicate that should be verified and cleaned up
  • Verify that all cross-reference links (xref) to shadow link metrics and tasks resolve correctly in the documentation build
  • Confirm the Antora playbook branch change (DOC-1621-Document-Cloud-Feature-Shadowing-Disaster-Recovery-Enterprise) is the intended feature branch and won't cause build issues

Possibly related PRs

Suggested reviewers

  • Feediver1

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'add shadowing metrics' accurately describes the main change: adding new shadow link metrics documentation across multiple files in the repository.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The PR description follows the required template structure with all major sections present (Description, Page previews, Checks), includes three preview URLs, but lacks specific Jira ticket reference and review deadline.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@micheleRP micheleRP force-pushed the DOC-1667-Document-Shadow-Link-in-Cloud branch from 3118ad6 to aea6e82 Compare December 2, 2025 19:59
Base automatically changed from DOC-1667-Document-Shadow-Link-in-Cloud to main December 2, 2025 21:44
# Conflicts:
#	modules/manage/pages/disaster-recovery/shadowing/monitor.adoc
@netlify
Copy link

netlify bot commented Dec 2, 2025

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 974cec9
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/692f76b5596fef00081fea83
😎 Deploy Preview https://deploy-preview-1496--redpanda-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Jira integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 2a5e33a and 12b3ce6.

📒 Files selected for processing (3)
  • local-antora-playbook.yml (1 hunks)
  • modules/manage/pages/disaster-recovery/shadowing/monitor.adoc (2 hunks)
  • modules/reference/pages/public-metrics-reference.adoc (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-07-16T19:33:20.420Z
Learnt from: Feediver1
Repo: redpanda-data/docs PR: 1153
File: modules/reference/pages/properties/topic-properties.adoc:45-50
Timestamp: 2025-07-16T19:33:20.420Z
Learning: In the Redpanda documentation, topic property cross-references like <<max.compaction.lag.ms>> and <<min.compaction.lag.ms>> require corresponding property definition sections with anchors like [[maxcompactionlagms]] and [[mincompactionlagms]] to prevent broken links.

Applied to files:

  • modules/reference/pages/public-metrics-reference.adoc
  • modules/manage/pages/disaster-recovery/shadowing/monitor.adoc
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Redirect rules - redpanda-docs-preview
  • GitHub Check: Header rules - redpanda-docs-preview
  • GitHub Check: Pages changed - redpanda-docs-preview
🔇 Additional comments (3)
local-antora-playbook.yml (1)

19-20: Verify this is a temporary feature branch reference.

The cloud-docs source is pinned to a specific feature branch instead of main. Confirm this is intentional for development and that it will be updated back to main before final merge.

modules/manage/pages/disaster-recovery/shadowing/monitor.adoc (2)

59-86: Cross-references depend on anchor definitions in public-metrics-reference.adoc.

This table uses xref links to target specific metric anchors (e.g., #redpanda_shadow_link_client_errors). These links will fail unless the corresponding anchor definitions are added to public-metrics-reference.adoc. Ensure anchors are added to that file before this documentation is published.


94-118: Comprehensive monitoring guidance.

The health check procedures and alert conditions are well-structured and provide clear guidance for operators. The new "Link unavailability" alert and cross-reference to Shadow link tasks improve documentation completeness.

[[redpanda_shadow_link_shadow_lag]]
=== redpanda_shadow_link_shadow_lag

The lag of the shadow partition against the source partition, calculated as source partition LSO (Last Stable Offset) minus shadow partition HWM (High Watermark). Monitor this metric to understand replication lag for each partition and ensure your RPO requirements are being met.
Copy link
Contributor

@micheleRP micheleRP Dec 2, 2025

Choose a reason for hiding this comment

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

Suggested change
The lag of the shadow partition against the source partition, calculated as source partition LSO (Last Stable Offset) minus shadow partition HWM (High Watermark). Monitor this metric to understand replication lag for each partition and ensure your RPO requirements are being met.
The lag of the shadow partition against the source partition, calculated as source partition last stable offset (LSO) minus shadow partition high watermark (HWM). Monitor this metric to understand replication lag for each partition and ensure your recovery point objective (RPO) requirements are being met.


* **High replication lag**: When `redpanda_shadow_link_shadow_lag` exceeds your RPO requirements
* **Connection errors**: When `redpanda_shadow_link_client_errors` increases rapidly
* **High replication lag**: When xref:reference:public-metrics-reference.adoc#redpanda_shadow_link_shadow_lag[`redpanda_shadow_link_shadow_lag`] exceeds your RPO requirements
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* **High replication lag**: When xref:reference:public-metrics-reference.adoc#redpanda_shadow_link_shadow_lag[`redpanda_shadow_link_shadow_lag`] exceeds your RPO requirements
* **High replication lag**: When xref:reference:public-metrics-reference.adoc#redpanda_shadow_link_shadow_lag[`redpanda_shadow_link_shadow_lag`] exceeds your recovery point objective (RPO) requirements

Copy link
Contributor

@micheleRP micheleRP left a comment

Choose a reason for hiding this comment

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

I left a little suggestion with acronyms, but lgtm!

Copy link
Contributor

@IoannisRP IoannisRP left a comment

Choose a reason for hiding this comment

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

Apart from a comment on total_records, everything else looks good 👍

Comment on lines +65 to +66
* xref:reference:public-metrics-reference.adoc#redpanda_shadow_link_total_records_fetched[`redpanda_shadow_link_total_records_fetched`] - Monitor message throughput from source cluster
* xref:reference:public-metrics-reference.adoc#redpanda_shadow_link_total_records_written[`redpanda_shadow_link_total_records_written`] - Track message throughput to shadow cluster
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure throughput is a good word here. Throughput means rate, while this is the total records fetched/written.

Total number of records fetched by the sharded replicator (records received by the client). Monitor this metric to track message throughput from the source cluster.

When it is next to the explanation, it's good. When it's alone, it might give the wrong impression of what this metric is.

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.

4 participants