Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add docs for enabling monitoring for nakama #803

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

rmrt1n
Copy link
Member

@rmrt1n rmrt1n commented Oct 24, 2024

Closes: WORLD-1221

Overview

Adds docs about enabling and configuring monitoring for Nakama.

Brief Changelog

  • Updated docs.

Testing and Verifying

Manually tested and verified.

Summary by CodeRabbit

  • New Features

    • Introduced comprehensive documentation for enabling monitoring in Nakama using Jaeger and Prometheus.
    • Added a new page for monitoring guidance in the Nakama SDK integration section.
  • Documentation

    • Updated footer links to reflect the new GitHub URL.
    • Enhanced documentation structure with additional configuration options for monitoring.

Copy link

graphite-app bot commented Oct 24, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “graphite/merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Contributor

coderabbitai bot commented Oct 24, 2024

Note

Reviews paused

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Walkthrough

The pull request introduces a new documentation file, monitoring-nakama.mdx, which provides guidance on enabling monitoring in Nakama using Jaeger and Prometheus. It outlines the integration process available in World CLI from version v1.3.1, including commands to start monitoring services and configuration options in the world.toml file. Additionally, modifications to the docs/mint.json file include the addition of a new page entry for monitoring within the Nakama SDK and an update to the GitHub URL in the footer section.

Changes

File Change Summary
docs/client/nakama/monitoring-nakama.mdx New documentation file created detailing monitoring setup with Jaeger and Prometheus.
docs/mint.json - New page entry added: "client/nakama/monitoring-nakama" in "Integrate via Nakama SDK" group.
- GitHub URL updated in footerSocials to "https://github.com/argus-labs".

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant WorldCLI
    participant Jaeger
    participant Prometheus

    User->>WorldCLI: Execute command `world cardinal start --telemetry`
    WorldCLI->>Jaeger: Start Jaeger container
    WorldCLI->>Prometheus: Start Prometheus container
    Jaeger->>User: Provide Jaeger Web UI URL
    Prometheus->>User: Provide Prometheus Web UI URL
Loading

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

📥 Commits

Reviewing files that changed from the base of the PR and between a74a362 and e313642.

📒 Files selected for processing (1)
  • docs/mint.json (1 hunks)
🔇 Additional comments (2)
docs/mint.json (2)

157-158: LGTM! Well-structured documentation organization.

The new monitoring documentation page is appropriately placed within the Nakama SDK integration section, maintaining a logical flow of content.


157-158: GitHub URL inconsistency was previously identified.

A previous review has already identified and provided recommendations regarding the GitHub URL inconsistency in the configuration.


🪧 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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 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
Member Author

rmrt1n commented Oct 24, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @rmrt1n and the rest of your teammates on Graphite Graphite

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: 6

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

📥 Commits

Files that changed from the base of the PR and between 5b45feb and e950105.

⛔ Files ignored due to path filters (2)
  • docs/images/jaeger-ui.png is excluded by !**/*.png, !**/*.png
  • docs/images/prometheus-ui.png is excluded by !**/*.png, !**/*.png
📒 Files selected for processing (2)
  • docs/client/nakama/monitoring-nakama.mdx (1 hunks)
  • docs/mint.json (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/client/nakama/monitoring-nakama.mdx

[uncategorized] ~18-~18: Did you mean: “By default,”?
Context: ...h world cardinal start --telemetry ``` By default this will start both the [Jaeger](https...

(BY_DEFAULT_COMMA)


[uncategorized] ~33-~33: A comma may be missing after the conjunctive/linking adverb ‘Currently’.
Context: ...heus by editing your world.toml file. Currently only these options are supported: ### ...

(SENT_START_CONJUNCTIVE_LINKING_ADVERB_COMMA)

🔇 Additional comments (1)
docs/mint.json (1)

149-150: LGTM! Navigation entry properly placed.

The new "monitoring-nakama" documentation page is logically placed within the "Integrate via Nakama SDK" section, following the existing "relay" entry.

docs/client/nakama/monitoring-nakama.mdx Outdated Show resolved Hide resolved
docs/client/nakama/monitoring-nakama.mdx Outdated Show resolved Hide resolved
docs/client/nakama/monitoring-nakama.mdx Outdated Show resolved Hide resolved
docs/client/nakama/monitoring-nakama.mdx Outdated Show resolved Hide resolved
docs/mint.json Show resolved Hide resolved
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: 3

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

📥 Commits

Files that changed from the base of the PR and between e950105 and 1025a13.

📒 Files selected for processing (1)
  • docs/client/nakama/monitoring-nakama.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/client/nakama/monitoring-nakama.mdx

[uncategorized] ~32-~32: A comma may be missing after the conjunctive/linking adverb ‘Currently’.
Context: ...heus by editing your world.toml file. Currently only these options are supported: **Ex...

(SENT_START_CONJUNCTIVE_LINKING_ADVERB_COMMA)

🔇 Additional comments (1)
docs/client/nakama/monitoring-nakama.mdx (1)

1-9: LGTM! Clear metadata and version requirements.

The metadata is well-structured, and the version requirement is clearly stated.

docs/client/nakama/monitoring-nakama.mdx Show resolved Hide resolved
docs/client/nakama/monitoring-nakama.mdx Show resolved Hide resolved
docs/client/nakama/monitoring-nakama.mdx Outdated Show resolved Hide resolved
Copy link

Preview Instructions

To preview these changes locally, checkout this branch and run:

make world-docs

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: ASSERTIVE

📥 Commits

Files that changed from the base of the PR and between 1025a13 and cb55e04.

📒 Files selected for processing (1)
  • docs/client/nakama/monitoring-nakama.mdx (1 hunks)
🔇 Additional comments (1)
docs/client/nakama/monitoring-nakama.mdx (1)

1-8: LGTM! Clear metadata and version requirements.

The metadata is well-structured, and the version requirement note is clear and specific.

docs/client/nakama/monitoring-nakama.mdx Show resolved Hide resolved
Copy link

github-actions bot commented Nov 5, 2024

Preview Instructions

To preview these changes locally, checkout this branch and run:

make world-docs

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: ASSERTIVE

📥 Commits

Reviewing files that changed from the base of the PR and between cb55e04 and a74a362.

📒 Files selected for processing (1)
  • docs/client/nakama/monitoring-nakama.mdx (1 hunks)
🔇 Additional comments (1)
docs/client/nakama/monitoring-nakama.mdx (1)

1-9: LGTM! Clear frontmatter and version requirement warning.

The frontmatter is well-structured, and the warning message clearly specifies the version requirement.

docs/client/nakama/monitoring-nakama.mdx Show resolved Hide resolved
docs/client/nakama/monitoring-nakama.mdx Show resolved Hide resolved
@rmrt1n rmrt1n enabled auto-merge (squash) November 5, 2024 10:33
@rmrt1n
Copy link
Member Author

rmrt1n commented Nov 5, 2024

@coderabbitai pause

Copy link

github-actions bot commented Nov 5, 2024

Preview Instructions

To preview these changes locally, checkout this branch and run:

make world-docs

Copy link
Contributor

coderabbitai bot commented Nov 5, 2024

✅ Actions performed

Reviews paused.

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