mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 23:55:47 -06:00
Loki: Rename log browser to label browser (#58416)
* rename loki log browser to label browser * rename loki log browser to label browser
This commit is contained in:
parent
b5651803e0
commit
966b47c2ef
@ -43,7 +43,7 @@ You can also augment queries by using [template variables]({{< relref "./templat
|
||||
## Code mode
|
||||
|
||||
In **Code mode**, you can write complex queries using a text editor with autocompletion features and syntax highlighting.
|
||||
It also contains a [log browser]({{< relref "#log-browser" >}}) to further help you write queries.
|
||||
It also contains a [label browser]({{< relref "#label-browser" >}}) to further help you write queries.
|
||||
|
||||
For more information about Loki's query language, refer to the [Loki documentation](/docs/loki/latest/logql/).
|
||||
|
||||
@ -54,21 +54,21 @@ Code mode's autocompletion feature works automatically while typing.
|
||||
The query editor can autocomplete static functions, aggregations, and keywords, and also dynamic items like labels.
|
||||
The autocompletion dropdown includes documentation for the suggested items where available.
|
||||
|
||||
### Log browser
|
||||
### Label browser
|
||||
|
||||
You can use the Loki log browser to navigate through your labels and values, and build queries.
|
||||
You can use the Loki label browser to navigate through your labels and values, and build queries.
|
||||
|
||||
**To navigate Loki and build a query:**
|
||||
|
||||
1. Choose labels to locate.
|
||||
1. Search for the values of your selected labels.
|
||||
|
||||
The search field supports fuzzy search, and the log browser also supports faceting to list only possible label combinations.
|
||||
The search field supports fuzzy search, and the label browser also supports faceting to list only possible label combinations.
|
||||
|
||||
1. Choose a query type between [**logs query**]({{< relref "#create-a-log-query" >}}) and [**rate metrics query**]({{< relref "#create-a-metric-query" >}}).
|
||||
You can also validate the selector.
|
||||
|
||||
{{< figure src="/static/img/docs/v75/loki_log_browser.png" class="docs-image--no-shadow" max-width="800px" caption="The Loki log browser" >}}
|
||||
{{< figure src="/static/img/docs/v75/loki_log_browser.png" class="docs-image--no-shadow" max-width="800px" caption="The Loki label browser" >}}
|
||||
|
||||
### Configure query settings
|
||||
|
||||
|
@ -97,8 +97,8 @@ export default class LokiCheatSheet extends PureComponent<QueryEditorHelpProps<L
|
||||
<div className="cheat-sheet-item">
|
||||
<div className="cheat-sheet-item__title">See your logs</div>
|
||||
<div className="cheat-sheet-item__label">
|
||||
Start by selecting a log stream from the Log browser, or alternatively you can write a stream selector into
|
||||
the query field.
|
||||
Start by selecting a log stream from the Label browser, or alternatively you can write a stream selector
|
||||
into the query field.
|
||||
</div>
|
||||
{hasUserExamples ? (
|
||||
<div>
|
||||
|
@ -171,7 +171,7 @@ function renderWithProps(overrides?: Partial<LokiQuery>) {
|
||||
}
|
||||
|
||||
async function expectCodeEditor() {
|
||||
// Log browser shows this until log labels are loaded.
|
||||
// Label browser shows this until log labels are loaded.
|
||||
expect(await screen.findByText('Loading...')).toBeInTheDocument();
|
||||
}
|
||||
|
||||
|
@ -32,9 +32,9 @@ function getChooserText(hasSyntax: boolean, hasLogLabels: boolean) {
|
||||
return 'Loading labels...';
|
||||
}
|
||||
if (!hasLogLabels) {
|
||||
return '(No logs found)';
|
||||
return '(No labels found)';
|
||||
}
|
||||
return 'Log browser';
|
||||
return 'Label browser';
|
||||
}
|
||||
|
||||
function willApplySuggestion(suggestion: string, { typeaheadContext, typeaheadText }: SuggestionsState): string {
|
||||
|
Loading…
Reference in New Issue
Block a user