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:
David 2019-10-01 16:31:45 +02:00 committed by GitHub
parent ed03338d68
commit 942f702d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 15 deletions

View File

@ -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

View File

@ -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>
);
});