mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki config: update doc links (#73690)
This commit is contained in:
@@ -3,13 +3,23 @@ import React from 'react';
|
||||
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
|
||||
import { ConfigSubSection } from '@grafana/experimental';
|
||||
import { InlineField, InlineSwitch } from '@grafana/ui';
|
||||
import { ConfigDescriptionLink } from 'app/core/components/ConfigDescriptionLink';
|
||||
|
||||
export function AlertingSettings({
|
||||
options,
|
||||
onOptionsChange,
|
||||
}: Pick<DataSourcePluginOptionsEditorProps, 'options' | 'onOptionsChange'>) {
|
||||
return (
|
||||
<ConfigSubSection title="Alerting">
|
||||
<ConfigSubSection
|
||||
title="Alerting"
|
||||
description={
|
||||
<ConfigDescriptionLink
|
||||
description="Manage alert rules for the Loki data source."
|
||||
suffix="loki/configure-loki-data-source/#alerting"
|
||||
feature="alerting"
|
||||
/>
|
||||
}
|
||||
>
|
||||
<InlineField
|
||||
labelWidth={29}
|
||||
label="Manage alert rules in Alerting UI"
|
||||
|
||||
@@ -52,7 +52,7 @@ export const ConfigEditor = (props: Props) => {
|
||||
<>
|
||||
<DataSourceDescription
|
||||
dataSourceName="Loki"
|
||||
docsLink="https://grafana.com/docs/grafana/latest/datasources/loki"
|
||||
docsLink="https://grafana.com/docs/grafana/latest/datasources/loki/configure-loki-data-source/"
|
||||
hasRequiredFields={false}
|
||||
/>
|
||||
<Divider />
|
||||
|
||||
@@ -50,7 +50,7 @@ export const DerivedFields = ({ fields = [], onChange }: Props) => {
|
||||
description={
|
||||
<ConfigDescriptionLink
|
||||
description="Derived fields can be used to extract new fields from a log message and create a link from its value."
|
||||
suffix="loki/#configure-derived-fields"
|
||||
suffix="loki/configure-loki-data-source/#derived-fields"
|
||||
feature="derived fields"
|
||||
/>
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@ export const QuerySettings = (props: Props) => {
|
||||
title="Queries"
|
||||
description={
|
||||
<ConfigDescriptionLink
|
||||
description="Additional options to customize your querying experience. "
|
||||
suffix="loki/#configure-the-data-source"
|
||||
description="Additional options to customize your querying experience."
|
||||
suffix="loki/configure-loki-data-source/#queries"
|
||||
feature="query settings"
|
||||
/>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user