VictoriaMetrics / victorialogs-datasource

Grafana datasource for VictoriaLogs
Apache License 2.0
89 stars 4 forks source link

Grafana show context support #41

Open clrxbl opened 4 months ago

clrxbl commented 4 months ago

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

hagen1778 commented 4 months ago

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

Andrey36652 commented 2 months ago

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?