Skip to content

Commit 821f1ae

Browse files
committed
Reduce Loki maxLines from 5000 to 500 to fix browser freezing
React performance violations in browser console show JavaScript blocking the main thread while processing log data: - 'message' handler took 206ms - Forced reflow took 33ms - 'focusout' handler took 150ms Root cause: Grafana trying to render too many log lines at once causes React components to block the browser UI thread. Solution: Limit to 500 lines (down from 5000) to reduce data processing and rendering load in the browser.
1 parent 60d7d34 commit 821f1ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

grafana-datasources.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ datasources:
99
editable: true
1010
timeout: 30
1111
jsonData:
12-
maxLines: 5000
12+
maxLines: 500
1313
timeout: 30
1414
# Query performance settings
1515
derivedFields: []
16+
# Disable live queries to reduce browser load
1617
# Default time range (helps prevent huge queries)
1718
# Users can still change this in the UI

0 commit comments

Comments
 (0)