diff --git a/docs/sources/datasources/loki/query-editor/index.md b/docs/sources/datasources/loki/query-editor/index.md index 7cd41793e3e..c3fed9c3d2e 100644 --- a/docs/sources/datasources/loki/query-editor/index.md +++ b/docs/sources/datasources/loki/query-editor/index.md @@ -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 diff --git a/public/app/plugins/datasource/loki/components/LokiCheatSheet.tsx b/public/app/plugins/datasource/loki/components/LokiCheatSheet.tsx index 1ff4d4f61ec..94e53cef3bb 100644 --- a/public/app/plugins/datasource/loki/components/LokiCheatSheet.tsx +++ b/public/app/plugins/datasource/loki/components/LokiCheatSheet.tsx @@ -97,8 +97,8 @@ export default class LokiCheatSheet extends PureComponent
See your logs
- 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.
{hasUserExamples ? (
diff --git a/public/app/plugins/datasource/loki/components/LokiQueryEditor.test.tsx b/public/app/plugins/datasource/loki/components/LokiQueryEditor.test.tsx index be95a86110c..abc3a9e1336 100644 --- a/public/app/plugins/datasource/loki/components/LokiQueryEditor.test.tsx +++ b/public/app/plugins/datasource/loki/components/LokiQueryEditor.test.tsx @@ -171,7 +171,7 @@ function renderWithProps(overrides?: Partial) { } 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(); } diff --git a/public/app/plugins/datasource/loki/components/LokiQueryField.tsx b/public/app/plugins/datasource/loki/components/LokiQueryField.tsx index 9101bd4032e..b695b2d4c08 100644 --- a/public/app/plugins/datasource/loki/components/LokiQueryField.tsx +++ b/public/app/plugins/datasource/loki/components/LokiQueryField.tsx @@ -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 {