Skip to content

Conversation

@pavangudiwada
Copy link
Contributor

@pavangudiwada pavangudiwada commented Apr 21, 2025

This part related to labels is not updated
image

When I run something like the following to get the labels. I get a full HTML page instead. Not sure what parts are important and how to find labels etc either.

curl -s -H "Authorization: Bearer TOKEN" \
     https://URL.grafana.net/loki/api/v1/labels -H 'X-Scope-OrgID:1'

@pavangudiwada pavangudiwada requested a review from aantn April 21, 2025 06:46
@aantn aantn requested review from arikalon1 and removed request for aantn April 21, 2025 06:49
@aantn
Copy link
Collaborator

aantn commented Apr 21, 2025

@arikalon1 adding you as reviewer instead of me, as you saw this issue with a user and helped them

@moshemorad moshemorad added the Silence Ignored by schedule notification label Jun 22, 2025
@coderabbitai
Copy link

coderabbitai bot commented Jun 22, 2025

Walkthrough

The documentation for obtaining Grafana Loki and Tempo datasource UIDs was reorganized to use tabbed interfaces, separating instructions for "Self Hosted" and "Grafana Cloud" environments. Graphical instructions with images were added for Grafana Cloud users, while existing command-line instructions were retained under the "Self Hosted" tabs.

Changes

File(s) Change Summary
docs/configuration/holmesgpt/toolsets/grafanaloki.rst Restructured instructions into "Self Hosted" and "Grafana Cloud" tabs; added graphical guidance for cloud users.
docs/configuration/holmesgpt/toolsets/grafanatempo.rst Split instructions into tabs for "Self Hosted Tempo" and "Grafana Cloud"; added visual aids for cloud scenario.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Documentation

    User->>Documentation: Open Loki/Tempo UID instructions
    alt Self Hosted
        Documentation->>User: Show CLI/API steps under "Self Hosted" tab
    else Grafana Cloud
        Documentation->>User: Show graphical steps with images under "Grafana Cloud" tab
    end
Loading

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
Contributor

@arikalon1 arikalon1 left a comment

Choose a reason for hiding this comment

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

nice work

Copy link

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

🧹 Nitpick comments (4)
docs/configuration/holmesgpt/toolsets/grafanaloki.rst (2)

50-84: Consistent tab-label naming for better UX

In this file the tab is titled “Self Hosted”, whereas in the Tempo doc the equivalent tab is “Self Hosted Tempo”. Pick one convention (e.g. “Self Hosted Loki” or simply “Self Hosted”) and use it across all toolsets so readers instantly understand they are parallel instructions.


87-99: Add alt-text to the screenshots

Both image directives lack an explicit “:alt:” attribute. Supplying alt text improves accessibility and also provides context when images fail to load.

-    .. image:: /images/grafana-loki-holmes-uid1.png
+    .. image:: /images/grafana-loki-holmes-uid1.png
+       :alt: Selecting a Loki datasource in Grafana Cloud

Repeat for the second image.

docs/configuration/holmesgpt/toolsets/grafanatempo.rst (2)

41-42: Align tab-label naming with Loki doc

Here the tab is called “Self Hosted Tempo”. The Loki doc uses “Self Hosted”. Standardise the wording across both docs for clarity and to avoid confusing readers switching between them.


75-77: Add alt-text to Tempo screenshots

While fixing the directive spacing, take the opportunity to provide “:alt:” text for accessibility.

-    .. image:: /images/grafana-tempo-holmes-uid1.png
+    .. image:: /images/grafana-tempo-holmes-uid1.png
+       :alt: Selecting a Tempo datasource in Grafana Cloud

Also applies to: 81-83

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 603f252 and 6058b1d.

⛔ Files ignored due to path filters (4)
  • docs/images/grafana-loki-holmes-uid1.png is excluded by !**/*.png
  • docs/images/grafana-loki-holmes-uid2.png is excluded by !**/*.png
  • docs/images/grafana-tempo-holmes-uid1.png is excluded by !**/*.png
  • docs/images/grafana-tempo-holmes-uid2.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • docs/configuration/holmesgpt/toolsets/grafanaloki.rst (1 hunks)
  • docs/configuration/holmesgpt/toolsets/grafanatempo.rst (1 hunks)
⏰ 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: run_tests
  • GitHub Check: run_tests
  • GitHub Check: Deploy docs

Comment on lines +75 to +77
.. image :: /images/grafana-tempo-holmes-uid1.png
:width: 600
:align: center
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

RST build will fail—extra space before “::” in image directives

The directives read .. image ::, but ReStructuredText requires .. image:: (no space). Sphinx will treat these as unknown directives and throw an error.

-    .. image :: /images/grafana-tempo-holmes-uid1.png
+    .. image:: /images/grafana-tempo-holmes-uid1.png

Apply the same fix to the second image block.

Also applies to: 81-83

🤖 Prompt for AI Agents
In docs/configuration/holmesgpt/toolsets/grafanatempo.rst around lines 75 to 77
and also lines 81 to 83, the image directives incorrectly have a space before
the double colon (`.. image ::`). Remove the extra space so the directives read
`.. image::` with no space before the colons to comply with ReStructuredText
syntax and prevent build errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Silence Ignored by schedule notification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants