[v9.5.x] Alerting: Fix docs link when creating or editing rules (#66164)

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

(cherry picked from commit 3e12b72f58)

Co-authored-by: George Robinson <george.robinson@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2023-04-07 14:42:55 +03:00
committed by GitHub
co-authored by George Robinson
parent 8dac8ab37b
commit 3b67cebd40
@@ -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>
);
}