mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki: remove live option for logs panel (#19533)
* Loki: remote live option for logs panel * Remove live from logs panel docs
This commit is contained in:
parent
ed03338d68
commit
942f702d80
@ -26,12 +26,7 @@ Note that you can scroll inside the panel in case the datasource returns more li
|
|||||||
|
|
||||||
### Query Options
|
### Query Options
|
||||||
|
|
||||||
Some datasources (e.g., Loki) allow the use of **Live** tailing to show a steady stream of log messages.
|
To limit the number of lines rendered, you can use the queries-wide **Max data points** setting. If it is not set, the datasource will usually enforce a limit.
|
||||||
When the panel is in **Live** mode, results are directly streamed from the datasource and the dashboard's time range is ignored.
|
|
||||||
Note that the streaming can put extra effort on the datasource and your browser.
|
|
||||||
Usually, the dashboard-wide refresh should be enough to get a recent set of log lines.
|
|
||||||
|
|
||||||
To limit the number of lines rendered, you can use the query-wide **Max data points** setting. If it is not set, the datasource will usually enforce a limit.
|
|
||||||
|
|
||||||
## Visualization Options
|
## Visualization Options
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import React, { memo } from 'react';
|
|||||||
|
|
||||||
// Types
|
// Types
|
||||||
import { AbsoluteTimeRange } from '@grafana/data';
|
import { AbsoluteTimeRange } from '@grafana/data';
|
||||||
import { QueryEditorProps, Switch, DataSourceStatus } from '@grafana/ui';
|
import { QueryEditorProps, DataSourceStatus } from '@grafana/ui';
|
||||||
import { LokiDatasource } from '../datasource';
|
import { LokiDatasource } from '../datasource';
|
||||||
import { LokiQuery } from '../types';
|
import { LokiQuery } from '../types';
|
||||||
import { LokiQueryField } from './LokiQueryField';
|
import { LokiQueryField } from './LokiQueryField';
|
||||||
@ -51,14 +51,6 @@ export const LokiQueryEditor = memo(function LokiQueryEditor(props: Props) {
|
|||||||
absoluteRange={absolute}
|
absoluteRange={absolute}
|
||||||
{...syntaxProps}
|
{...syntaxProps}
|
||||||
/>
|
/>
|
||||||
<div className="gf-form-inline">
|
|
||||||
<div className="gf-form">
|
|
||||||
<Switch label="Live" checked={!!query.live} onChange={() => onChange({ ...query, live: !query.live })} />
|
|
||||||
</div>
|
|
||||||
<div className="gf-form gf-form--grow">
|
|
||||||
<div className="gf-form-label gf-form-label--grow" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user