Skip to content

Commit

Permalink
fix: update doc links (#760)
Browse files Browse the repository at this point in the history
* fix: update `Alerting docs` link and copy

* fix: update doc URLs after reorganization

* fix: update probes link
  • Loading branch information
ppcano committed Apr 25, 2024
1 parent 0de8c1b commit dac1645
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
8 changes: 4 additions & 4 deletions src/components/DocsLink/DocsLink.tsx
Expand Up @@ -4,10 +4,10 @@ import { Icon, useStyles2 } from '@grafana/ui';
import { css, cx } from '@emotion/css';

const docs = {
probes: `https://grafana.com/docs/grafana-cloud/monitor-public-endpoints/#probes`,
publicProbes: `https://grafana.com/docs/grafana-cloud/monitor-public-endpoints/probes/`,
privateProbes: `https://grafana.com/docs/grafana-cloud/monitor-public-endpoints/private-probes/`,
addPrivateProbe: `https://grafana.com/docs/grafana-cloud/monitor-public-endpoints/private-probes/#add-a-new-probe-in-your-grafana-instance`,
probes: `https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/create-checks/public-probes/`,
publicProbes: `https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/create-checks/public-probes/`,
privateProbes: `https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/set-up/set-up-private-probes/`,
addPrivateProbe: `https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/set-up/set-up-private-probes/#add-a-new-probe-in-your-grafana-instance`,
};

type DocsLinkProps = {
Expand Down
17 changes: 1 addition & 16 deletions src/page/AlertingPage.tsx
Expand Up @@ -89,25 +89,10 @@ const Alerting = () => {
<p>
View and edit default alerts for Synthetic Monitoring here. To tie one of these alerts to a check, you must
select the alert sensitivity from the Alerting section of the check form when creating a check.{' '}
<a href="https://grafana.com/docs/grafana-cloud/synthetic-monitoring/#alerting" className={styles.link}>
<a href="https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/configure-alerts/synthetic-monitoring-alerting/" className={styles.link}>
Learn more about alerting for Synthetic Monitoring.
</a>
</p>
<p>
Routes and receivers must be configured in{' '}
<a href={'/alerting/list'} className={styles.link} target="blank" rel="noopener noreferer">
Grafana Alerting
</a>{' '}
in order to be notified when an alert fires.{' '}
<a
href="https://grafana.com/blog/2020/02/25/step-by-step-guide-to-setting-up-prometheus-alertmanager-with-slack-pagerduty-and-gmail/"
target="blank"
rel="noopener noreferer"
className={styles.link}
>
Learn more about configuring Alertmanager
</a>
</p>
{!alertRules && <Spinner />}
{alertError && (
<Alert title="Error fetching alert rules" severity="error">
Expand Down
2 changes: 1 addition & 1 deletion src/scenes/SCRIPTED/AssertionsTable/AssertionsTable.tsx
Expand Up @@ -216,7 +216,7 @@ function AssertionsTable({ model }: SceneComponentProps<AssertionsTableSceneObje
href={
checkType === CheckType.Scripted
? 'https://grafana.com/docs/k6/latest/using-k6/checks/'
: 'https://grafana.com/docs/grafana-cloud/monitor-public-endpoints/checks/multihttp/#assertions'
: 'https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/create-checks/checks/multihttp/#assertions'
}
target="_blank"
rel="noopener noreferrer"
Expand Down

0 comments on commit dac1645

Please sign in to comment.