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

Proxy library elements in grr serve #494

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

K-Phoen
Copy link
Member

@K-Phoen K-Phoen commented Sep 13, 2024

Fixes #493

This PR allows /api/library-elements/* URLs to be proxied by grr serve, enabling library panels to be resolved and displayed in grizzly.

@K-Phoen K-Phoen self-assigned this Sep 13, 2024
@K-Phoen K-Phoen requested a review from a team as a code owner September 13, 2024 10:40
@malcolmholmes
Copy link
Contributor

Great! But the question is: should those library panels be expected to exist within Grafana, or in your code? It might be better if Grizzly served those library elements from its ResourceList?

@K-Phoen
Copy link
Member Author

K-Phoen commented Sep 13, 2024

Haha, I thought about that too after opening this PR.

Can you have a look at the second commit? It introduces the ability to serve library elements from in-memory resources and falls back to Grafana when they're not found.

Copy link
Contributor

@malcolmholmes malcolmholmes left a comment

Choose a reason for hiding this comment

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

Amazing, thanks!

@K-Phoen K-Phoen merged commit 4cf8f3d into main Sep 17, 2024
7 checks passed
@K-Phoen K-Phoen deleted the fix/issue-493-serve-library-elements branch September 17, 2024 11:03
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.

[Bug]: Library Panels do not work on Grizzly Server
2 participants