Commit 942f702d by David Committed by GitHub

Loki: remove live option for logs panel (#19533)

* Loki: remote live option for logs panel

* Remove live from logs panel docs
parent ed03338d
......@@ -26,12 +26,7 @@ Note that you can scroll inside the panel in case the datasource returns more li
### Query Options
Some datasources (e.g., Loki) allow the use of **Live** tailing to show a steady stream of log messages.
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.
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.
## Visualization Options
......
......@@ -3,7 +3,7 @@ import React, { memo } from 'react';
// Types
import { AbsoluteTimeRange } from '@grafana/data';
import { QueryEditorProps, Switch, DataSourceStatus } from '@grafana/ui';
import { QueryEditorProps, DataSourceStatus } from '@grafana/ui';
import { LokiDatasource } from '../datasource';
import { LokiQuery } from '../types';
import { LokiQueryField } from './LokiQueryField';
......@@ -51,14 +51,6 @@ export const LokiQueryEditor = memo(function LokiQueryEditor(props: Props) {
absoluteRange={absolute}
{...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>
);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment