There is no proper documentation for maxLines field. When adding the datasource, examples show a jsonData.maxLines field, which is never explained, neither here, nor here or anywhere else
I’ve found some “documentation” of this field in the Grafana UI. Go to:
grafana dashboard > connections > data sources > [your data source] > settings > additional settings
And hover over the (i) for maximum lines.
jsonData.maxLines sets the maximum number of log lines Grafana fetches from Loki per query. It is the same as the “Maximum lines” field found under Settings → Additional settings of the Loki datasource UI.
Provisioning example:
yaml
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
url: http://localhost:3100
jsonData:
maxLines: 1000
If maxLines is omitted , Grafana defaults to 1000 (tested by provisioning without maxLines and checking the UI )
