Skip to content

ROB-1267: update docs for logging toolsets due to unified logging refactor#1823

Merged
pavangudiwada merged 5 commits intomasterfrom
rob-1267_unified_logging_docs_update
May 29, 2025
Merged

ROB-1267: update docs for logging toolsets due to unified logging refactor#1823
pavangudiwada merged 5 commits intomasterfrom
rob-1267_unified_logging_docs_update

Conversation

@nherment
Copy link
Copy Markdown
Contributor

@nherment nherment commented May 20, 2025

Summary by CodeRabbit

  • Documentation
    • Split OpenSearch documentation into two separate toolsets: "OpenSearch logs" and "OpenSearch status," each with dedicated guides and navigation cards.
    • Added comprehensive documentation for the new OpenSearch logs toolset, including configuration instructions and label mapping guidance.
    • Introduced a new document detailing how to disable the default HolmesGPT logging toolset for alternative log sources.
    • Clarified and simplified instructions and capabilities for Kubernetes, Coralogix, and Grafana Loki log toolsets.
    • Improved formatting, consistency, and clarity across multiple log toolset documentation pages.
    • Removed disabling configuration snippet from Grafana Tempo documentation to reflect updated defaults.
    • Corrected spelling of "OpenSearch" throughout the documentation.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 20, 2025

Walkthrough

The documentation for HolmesGPT toolsets was reorganized and clarified, splitting the OpenSearch toolset into separate logs and status components, and introducing a new guide for disabling the default logging toolset. Several toolset documentation files were updated for clarity, capability consolidation, and consistent formatting, with new files added for OpenSearch logs and disabling default logging.

Changes

Files/Paths Change Summary
docs/configuration/holmesgpt/builtin_toolsets.rst Split the OpenSearch toolset entry into "OpenSearch logs" and "OpenSearch status" in the documentation, updating toctree links and UI cards accordingly.
docs/configuration/holmesgpt/toolsets/opensearch_logs.rst (new), docs/configuration/holmesgpt/toolsets/opensearch_status.rst Added a new documentation file for the OpenSearch logs toolset, detailing configuration and usage. Renamed the existing Opensearch toolset documentation to "OpenSearch status" with text corrections but no content changes.
docs/configuration/holmesgpt/toolsets/_disable_default_logging_toolset.inc.rst (new) Introduced a new documentation include file explaining how to disable the default HolmesGPT logging toolset, with instructions for both Helm Chart and CLI environments.
docs/configuration/holmesgpt/toolsets/_toolsets_that_provide_logging.inc.rst Updated the list of log access toolsets: clarified the Kubernetes logs toolset description and added a new entry for OpenSearch log access.
docs/configuration/holmesgpt/toolsets/coralogix_logs.rst Clarified that only pod logs are fetched from Coralogix, updated instructions for disabling the default toolset to use an include, simplified search label configuration, and changed the capability name to fetch_pod_logs.
docs/configuration/holmesgpt/toolsets/grafanaloki.rst Clarified that only pod logs are fetched, improved formatting, replaced inline disabling instructions with an include, updated configuration language, and consolidated capabilities into a single fetch_pod_logs entry.
docs/configuration/holmesgpt/toolsets/grafanatempo.rst Removed the configuration snippet for disabling the default logging toolset from the "Configuration (direct connection)" sections.
docs/configuration/holmesgpt/toolsets/kubernetes.rst Consolidated multiple specific log-fetching tools into a single generic fetch_pod_logs capability in the documentation; capitalized "Kubernetes" consistently.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant HolmesGPT
    participant OpenSearch
    participant Kubernetes

    User->>HolmesGPT: Request pod logs
    alt OpenSearch logs toolset enabled
        HolmesGPT->>OpenSearch: Query logs (using configured labels and auth)
        OpenSearch-->>HolmesGPT: Return pod logs
    else Default Kubernetes logs toolset enabled
        HolmesGPT->>Kubernetes: Fetch pod logs via API
        Kubernetes-->>HolmesGPT: Return pod logs
    end
    HolmesGPT-->>User: Display pod logs
Loading
sequenceDiagram
    participant Admin
    participant HolmesGPT

    Admin->>HolmesGPT: Disable default logging toolset (via config)
    HolmesGPT-->>Admin: Acknowledges configuration
    Admin->>HolmesGPT: Enable alternative log toolset (e.g., OpenSearch, Coralogix)
    HolmesGPT-->>Admin: Uses specified log source for future requests
Loading

Possibly related PRs

  • Added Notion to the index #1828: Adds a new Notion toolset entry and card, modifying the builtin_toolsets.rst file's toctree and grid-item cards similarly to this PR but for a different toolset.

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4f52d07 and fc90de5.

📒 Files selected for processing (2)
  • docs/configuration/holmesgpt/builtin_toolsets.rst (2 hunks)
  • docs/configuration/holmesgpt/index.rst (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • docs/configuration/holmesgpt/index.rst
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/configuration/holmesgpt/builtin_toolsets.rst
⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: run_tests
  • GitHub Check: run_tests
  • GitHub Check: Deploy docs

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown

@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: 0

🧹 Nitpick comments (9)
docs/configuration/holmesgpt/toolsets/opensearch_status.rst (1)

1-2: Correct brand name capitalization.

The title uses “Opensearch” but the official product name is OpenSearch. Update to:

OpenSearch status
=================

to maintain consistency with other documentation (e.g., in builtin_toolsets.rst).

docs/configuration/holmesgpt/toolsets/_toolsets_that_provide_logging.inc.rst (1)

3-3: Capitalize Kubernetes in description.

For proper noun consistency, update this line to:

-* :ref:`kubernetes/logs <toolset_kubernetes_logs>`: Access logs directly through kubernetes. **This is the default toolset.**
+* :ref:`kubernetes/logs <toolset_kubernetes_logs>`: Access logs directly through Kubernetes. **This is the default toolset.**
docs/configuration/holmesgpt/toolsets/kubernetes.rst (1)

93-94: Capitalize Kubernetes in capability description.

Update to:

-* - fetch_pod_logs
-*   - Fetches logs from a kubernetes pod
+* - fetch_pod_logs
+  - Fetches logs from a Kubernetes pod

for proper noun consistency.

docs/configuration/holmesgpt/toolsets/_disable_default_logging_toolset.inc.rst (3)

2-3: Clarify title to specify logging.

Change the section title from:

Disabling the default toolset
*****************************

to:

Disabling the default logging toolset
*************************************

to more clearly reflect the scope.


5-6: Correct terminology: “data source.”

Replace “datasource” with “data source” in the first paragraph:

- The default HolmesGPT logging tool **must** be disabled if you use a different datasource for logs.
+ The default HolmesGPT logging tool **must** be disabled if you use a different data source for logs.

23-25: Use inline literal for file path.

In reStructuredText, file paths are typically shown as inline literals. Update to:

- Add the following to **~/.holmes/config.yaml**, creating the file if it doesn't exist:
+ Add the following to ``~/.holmes/config.yaml``, creating the file if it doesn't exist:
docs/configuration/holmesgpt/toolsets/grafanaloki.rst (1)

6-6: Grammar: use “pod logs” instead of “pods logs”.
The sentence currently reads “fetch pods logs”; it should be singular “pod logs” for clarity.
Proposed diff:

- By enabling this toolset, HolmesGPT will fetch pods logs from `Loki <https://grafana.com/oss/loki/>`_.
+ By enabling this toolset, HolmesGPT will fetch pod logs from `Loki <https://grafana.com/oss/loki/>`_.
docs/configuration/holmesgpt/toolsets/coralogix_logs.rst (1)

6-6: Grammar: use “pod logs” instead of “pods logs”.
The description should read “fetch pod logs” for grammatical accuracy.
Proposed diff:

- By enabling this toolset, HolmesGPT will fetch pods logs from `Coralogix <https://coralogix.com/>`_.
+ By enabling this toolset, HolmesGPT will fetch pod logs from `Coralogix <https://coralogix.com/>`_.
docs/configuration/holmesgpt/toolsets/opensearch_logs.rst (1)

3-10: Normalize product name to “OpenSearch”.
The title and description use “Opensearch” but the official branding is “OpenSearch”. For consistency, update both occurrences:

- Opensearch logs
+ OpenSearch logs
...
- HolmesGPT will fetch pod logs from `Opensearch <https://opensearch.org/>`_.
+ HolmesGPT will fetch pod logs from `OpenSearch <https://opensearch.org/>`_.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b9cd457 and 2cc7477.

⛔ Files ignored due to path filters (1)
  • docs/images/opensearch_toolset_labels_example.png is excluded by !**/*.png
📒 Files selected for processing (9)
  • docs/configuration/holmesgpt/builtin_toolsets.rst (2 hunks)
  • docs/configuration/holmesgpt/toolsets/_disable_default_logging_toolset.inc.rst (1 hunks)
  • docs/configuration/holmesgpt/toolsets/_toolsets_that_provide_logging.inc.rst (1 hunks)
  • docs/configuration/holmesgpt/toolsets/coralogix_logs.rst (6 hunks)
  • docs/configuration/holmesgpt/toolsets/grafanaloki.rst (10 hunks)
  • docs/configuration/holmesgpt/toolsets/grafanatempo.rst (0 hunks)
  • docs/configuration/holmesgpt/toolsets/kubernetes.rst (1 hunks)
  • docs/configuration/holmesgpt/toolsets/opensearch_logs.rst (1 hunks)
  • docs/configuration/holmesgpt/toolsets/opensearch_status.rst (1 hunks)
💤 Files with no reviewable changes (1)
  • docs/configuration/holmesgpt/toolsets/grafanatempo.rst
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: run_tests
  • GitHub Check: run_tests
  • GitHub Check: Deploy docs
  • GitHub Check: Deploy docs
🔇 Additional comments (23)
docs/configuration/holmesgpt/toolsets/_toolsets_that_provide_logging.inc.rst (1)

6-6: Approve new OpenSearch logs entry.

The addition of opensearch/logs correctly surfaces the new toolset and clearly describes log access via OpenSearch.

docs/configuration/holmesgpt/builtin_toolsets.rst (3)

21-22: Builtin toctree updated with new OpenSearch toolsets.

Including toolsets/opensearch_logs and toolsets/opensearch_status in the toctree accurately reflects the split of the original OpenSearch toolset.


103-106: Add grid-item card for OpenSearch logs.

The new “OpenSearch logs” card is correctly configured with :link: and :link-type: doc, matching the other toolset entries.


108-110: Add grid-item card for OpenSearch status.

The new “OpenSearch status” card is configured consistently and maintains visual parity with existing cards.

docs/configuration/holmesgpt/toolsets/_disable_default_logging_toolset.inc.rst (4)

9-9: Approve md-tab-set usage.

Leveraging .. md-tab-set:: to separate Robusta Helm Chart and Holmes CLI instructions is appropriate for readability.


11-18: Approve Robusta Helm Chart tab.

The YAML snippet for disabling kubernetes/logs in the Robusta Helm Chart is clear, correctly indented, and includes the common configuration include.


21-21: Approve include of configuration snippet.

Including _toolset_configuration.inc.rst under the Robusta tab ensures users see the full configuration context.


27-31: Approve Holmes CLI tab code-block.

The YAML snippet correctly demonstrates how to disable kubernetes/logs in the Holmes CLI config.

docs/configuration/holmesgpt/toolsets/grafanaloki.rst (5)

100-102: Consistent disable instruction for Robusta Helm Chart.
Disabling the default Kubernetes logs toolset is correctly marked as “MUST be disabled” to avoid conflicts.


120-122: Consistent disable instruction for Holmes CLI.
The inline example correctly disables the default kubernetes/logs toolset with the required “MUST be disabled” comment.


148-150: Consistent disable instruction for direct connection.
The direct-connection example also properly disables kubernetes/logs, maintaining consistency.


227-227: Standardize disabling instructions via include.
Including _disable_default_logging_toolset.inc.rst ensures the same guidance is reused across all log toolset docs.


238-241: Unified capability naming.
Replacing multiple Loki-specific capabilities with a single fetch_pod_logs entry aligns with the consolidated logging interface.

docs/configuration/holmesgpt/toolsets/coralogix_logs.rst (5)

9-9: Capability consolidation approved.
Removing the slash in “kubernetes pod logs” improves readability and matches other toolset docs.


45-47: Disable default toolset in Robusta Helm Chart.
The inline YAML correctly disables the default Kubernetes logs toolset with the “MUST be disabled” comment.


65-67: Disable default toolset in Holmes CLI.
The example in ~/.holmes/config.yaml properly disables kubernetes/logs.


128-128: Reuse centralized disable instructions.
Including _disable_default_logging_toolset.inc.rst standardizes the instructions across all toolsets.


142-143: Unified capability naming.
Switching to a single fetch_pod_logs capability aligns with the unified logging refactor.

docs/configuration/holmesgpt/toolsets/opensearch_logs.rst (5)

38-40: Disable default Kubernetes logs.
The Robusta Helm Chart example correctly disables the default kubernetes/logs toolset to prevent conflicts.


63-65: Disable default Kubernetes logs in Holmes CLI.
The CLI example properly sets kubernetes/logs.enabled: false with the mandatory disable comment.


66-71: “Configuring index_pattern and labels” section added.
This optional configuration guidance succinctly explains how to customize the index pattern and label mappings.


119-119: Centralize disable instructions.
Including _disable_default_logging_toolset.inc.rst here aligns with other toolset docs and ensures uniform guidance.


131-135: Unified capability naming.
The new table correctly lists the single fetch_pod_logs capability, matching the refactored logging interface.

@pavangudiwada pavangudiwada self-requested a review May 29, 2025 05:04
Copy link
Copy Markdown
Contributor

@pavangudiwada pavangudiwada left a comment

Choose a reason for hiding this comment

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

LGTM

@pavangudiwada pavangudiwada enabled auto-merge (squash) May 29, 2025 05:05
@pavangudiwada pavangudiwada merged commit 1c69ea7 into master May 29, 2025
8 checks passed
@pavangudiwada pavangudiwada deleted the rob-1267_unified_logging_docs_update branch May 29, 2025 05:13
@coderabbitai coderabbitai Bot mentioned this pull request Oct 29, 2025
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.

2 participants