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

Grafana show context support #41

Open
clrxbl opened this issue Jul 5, 2024 · 5 comments
Open

Grafana show context support #41

clrxbl opened this issue Jul 5, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@clrxbl
Copy link

clrxbl commented Jul 5, 2024

This is a feature suggestion. Grafana Loki allows you to show the context, so the log lines before/after a specific log line you click on. It would be very useful if VictoriaLogs could do this aswell.

Example:
CleanShot 2024-07-05 at 02 50 17@2x

CleanShot 2024-07-05 at 02 51 22@2x

@Loori-R Loori-R added the enhancement New feature or request label Jul 5, 2024
@hagen1778
Copy link
Contributor

Can be implemented via https://docs.victoriametrics.com/victorialogs/logsql/#stream_context-pipe

@Andrey36652
Copy link

I'm +1 on this feature. I have very little knowledge about plugin development for grafana. How hard it will be to parse existing user query and inject stream context pipe in it like @hagen1778 suggested?

@worker24h
Copy link
Contributor

worker24h commented Nov 20, 2024

The default, show context only support loki, es etc.
if implement it , we need to implement the interface getLogRowContext(row: LogRowModel, options?: LogRowContextOptions, query?: SQLQuery)

@hagen1778
Copy link
Contributor

@dmitryk-dk @Loori-R I think this enhancement requires changes on both: backend and frontend.

@worker24h
Copy link
Contributor

worker24h commented Nov 21, 2024

@dmitryk-dk @Loori-R I think this enhancement requires changes on both: backend and frontend.

No, it is only frontend. I can commit a PR for this, I am developing it. @hagen1778

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants