Alerting: Fix docs link when creating or editing rules (#66019)

This commit is contained in:
George Robinson 2023-04-07 12:31:18 +01:00 committed by GitHub
parent 5dc529a55d
commit 3e12b72f58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ function getDescription(ruleType: RuleFormType | undefined) {
return 'Select the Namespace and Group for your recording rule.';
}
const docsLink =
'https://grafana.com/docs/grafana/latest/alerting/fundamentals/annotation-label/variables-label-annotation/#the-values-variable';
'https://grafana.com/docs/grafana/latest/alerting/fundamentals/annotation-label/variables-label-annotation';
const LinkToDocs = () => (
<span>
Click{' '}
@ -26,8 +26,7 @@ function getDescription(ruleType: RuleFormType | undefined) {
return (
<span>
{' '}
Write a summary to help you better manage your alerts.
<LinkToDocs />
Write a summary to help you better manage your alerts. <LinkToDocs />
</span>
);
}
@ -36,7 +35,6 @@ function getDescription(ruleType: RuleFormType | undefined) {
<span>
{' '}
Select the Namespace and evaluation group for your alert. Write a summary to help you better manage your alerts.{' '}
<LinkToDocs />
</span>
);
}