Skip to content

🤖 Sync generated docs from sourcegraph/sourcegraph - #1883

Open
sourcegraph-buildkite wants to merge 1 commit into
mainfrom
sync/generated-docs
Open

🤖 Sync generated docs from sourcegraph/sourcegraph#1883
sourcegraph-buildkite wants to merge 1 commit into
mainfrom
sync/generated-docs

Conversation

@sourcegraph-buildkite

Copy link
Copy Markdown
Collaborator

This is an automated pull request, created by //doc:generated.push on sourcegraph/sourcegraph

@sourcegraph-buildkite
sourcegraph-buildkite requested a review from a team September 9, 2026 01:40
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sourcegraph-docs Ready Ready Preview Sep 11, 2026 8:46am UTC

Request Review

marcleblanc2 added a commit that referenced this pull request Sep 11, 2026
…#1899)

## What

Rewrites every link to this site that was written as an absolute URL
(`https://sourcegraph.com/docs/…`, `http://sourcegraph.com/docs/…`,
`https://docs.sourcegraph.com/…`) as a relative link
(`/admin/config/site-config`), in 15 files.

- 32 pointed at the current route: prefix dropped.
- 31 pointed at a moved page and only worked through
`src/data/redirects.ts`: now link straight to the destination.
- 4 needed a hand fix: the `commands#commands-id-mode` and
`features#shard-merging` anchors no longer exist,
`github#github-com-rate-limits` became `#rate-limits`, and the deleted
gRPC guide now links to its archived 5.3 page.

## Why

Absolute links leave the Vercel preview and the local dev server, and
hide moved pages behind redirects. #1858 makes `dev/check-links.mjs`
fail PRs that add them; this PR clears the backlog so that check starts
from zero.

## Verification

`node dev/check-links.mjs --check-anchors --root <this branch>` with the
checker from #1858: 0 absolute self-links left, and no new findings
against `main` (317 → 250 pre-existing findings; the 67 removed are all
self-links).

## Notes for reviewers

- Bare URLs in prose and code blocks (e.g. the `See
https://docs.sourcegraph.com/admin/observability/tracing` cells in
`docs/cli/references/*`) are not links and are untouched; #1851 covers
those.
- `docs/admin/repo/perforce.mdx`,
`docs/self-hosted/observability/alerts.mdx` and `dashboards.mdx` are
synced from sourcegraph/sourcegraph (#1883); the same links need the
same fix upstream or the next sync reverts them.
- `docs/technical-changelog.mdx` holds 31 of the links and is retired by
#1888; if that lands first, take the deletion.

Co-authored-by: Amp <amp@ampcode.com>
@github-actions

Copy link
Copy Markdown
Contributor

❌ This PR introduces 26 broken link(s)

Outbound

Your PR includes links to pages or anchors that do not exist, or absolute links to this site.

docs/admin/telemetry/private-metadata-allowlist.mdx

  • line 3: https://sourcegraph.com/docs/admin/telemetry/protocol#telemetrygateway-v1-EventParameters — Absolute self-link; use "/admin/telemetry/protocol#telemetrygateway-v1-EventParameters" instead
  • line 9: https://sourcegraph.com/docs/admin/telemetry — Absolute self-link; use "/admin/telemetry" instead

docs/admin/telemetry/protocol.mdx

  • line 6: https://sourcegraph.com/docs/admin/telemetry — Absolute self-link; use "/admin/telemetry" instead

docs/self-hosted/observability/alerts.mdx

  • line 8: https://sourcegraph.com/docs/admin/observability/alerting — Absolute self-link to a moved page; use "/self-hosted/observability/alerting" instead
  • line 247: https://sourcegraph.com/docs/admin/monorepo — Absolute self-link; use "/admin/monorepo" instead
  • line 282: https://sourcegraph.com/docs/admin/monorepo — Absolute self-link; use "/admin/monorepo" instead
  • line 912: https://sourcegraph.com/docs/admin/config/postgres-conf — Absolute self-link to a moved page; use "/self-hosted/postgres-conf" instead
  • line 1400: https://sourcegraph.com/docs/self-hosted/deploy/resource-estimator — Absolute self-link; use "/self-hosted/deploy/resource-estimator" instead
  • line 1691: https://sourcegraph.com/docs/admin/config/postgres-conf — Absolute self-link to a moved page; use "/self-hosted/postgres-conf" instead
  • line 2009: https://sourcegraph.com/docs/admin/config/postgres-conf — Absolute self-link to a moved page; use "/self-hosted/postgres-conf" instead
  • line 2499: https://sourcegraph.com/docs/admin/config/postgres-conf — Absolute self-link to a moved page; use "/self-hosted/postgres-conf" instead
  • line 2568: https://sourcegraph.com/docs/admin/config/postgres-conf — Absolute self-link to a moved page; use "/self-hosted/postgres-conf" instead
  • line 3907: https://sourcegraph.com/docs/admin/code_hosts/github#github-com-rate-limits — Absolute self-link to a moved page; "/admin/code-hosts/github#github-com-rate-limits" replaced it, but anchor "github-com-rate-limits" not found in "/admin/code-hosts/github"
  • line 3907: https://sourcegraph.com/docs/admin/code_hosts/gitlab#internal-rate-limits — Absolute self-link to a moved page; use "/admin/code-hosts/gitlab#internal-rate-limits" instead
  • line 3907: https://sourcegraph.com/docs/admin/code_hosts/bitbucket_server#internal-rate-limits — Absolute self-link to a moved page; use "/admin/code-hosts/bitbucket-server#internal-rate-limits" instead
  • line 4037: https://sourcegraph.com/docs/admin/config/postgres-conf — Absolute self-link to a moved page; use "/self-hosted/postgres-conf" instead
  • line 4651: https://sourcegraph.com/docs/admin/config/postgres-conf — Absolute self-link to a moved page; use "/self-hosted/postgres-conf" instead
  • line 5578: https://sourcegraph.com/docs/code-search/features#shard-merging — Absolute self-link, and anchor "shard-merging" not found in "/code-search/features"
  • line 5869: https://sourcegraph.com/docs/admin/observability/alerting#setting-up-alerting — Absolute self-link to a moved page; use "/self-hosted/observability/alerting#setting-up-alerting" instead
  • line 5901: https://sourcegraph.com/docs/admin/observability/alerting#setting-up-alerting — Absolute self-link to a moved page; use "/self-hosted/observability/alerting#setting-up-alerting" instead
  • line 5934: https://sourcegraph.com/docs/admin/observability/metrics#prometheus-configuration — Absolute self-link to a moved page; use "/self-hosted/observability/metrics#prometheus-configuration" instead
  • line 5965: https://sourcegraph.com/docs/admin/observability/alerting#setting-up-alerting — Absolute self-link to a moved page; use "/self-hosted/observability/alerting#setting-up-alerting" instead

docs/self-hosted/observability/dashboards.mdx

  • line 7: https://sourcegraph.com/docs/admin/observability/metrics — Absolute self-link to a moved page; use "/self-hosted/observability/metrics" instead
  • line 16723: https://sourcegraph.com/docs/admin/permissions/syncing#scheduling — Absolute self-link; use "/admin/permissions/syncing#scheduling" instead
  • line 26631: https://sourcegraph.com/docs/admin/observability/metrics#prometheus-configuration — Absolute self-link to a moved page; use "/self-hosted/observability/metrics#prometheus-configuration" instead
  • line 26655: https://sourcegraph.com/docs/admin/observability/metrics#prometheus-configuration — Absolute self-link to a moved page; use "/self-hosted/observability/metrics#prometheus-configuration" instead

Write links to this site as relative paths (/admin/config/site-config), not https://sourcegraph.com/docs/… or https://docs.sourcegraph.com/…: absolute links leave the preview deployment and local dev server, and hide moved pages behind redirects.

Reproduce locally with pnpm check-links --check-anchors (see dev/check-links.mjs).

Adding a redirect in src/data/redirects.ts does not satisfy this check, because it’s a workaround instead of a fix.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested fixes for the links this PR adds; details in the check-links comment.

# Private metadata allowlist

This document lists all telemetry events that are allowed to export specific `privateMetadata` fields (from within [telemetry event parameters](/admin/telemetry/protocol#telemetrygateway-v1-EventParameters)).
This document lists all telemetry events that are allowed to export specific `privateMetadata` fields (from within [telemetry event parameters](https://sourcegraph.com/docs/admin/telemetry/protocol#telemetrygateway-v1-EventParameters)).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • https://sourcegraph.com/docs/admin/telemetry/protocol#telemetrygateway-v1-EventParameters: Absolute self-link; use "/admin/telemetry/protocol#telemetrygateway-v1-EventParameters" instead
Suggested change
This document lists all telemetry events that are allowed to export specific `privateMetadata` fields (from within [telemetry event parameters](https://sourcegraph.com/docs/admin/telemetry/protocol#telemetrygateway-v1-EventParameters)).
This document lists all telemetry events that are allowed to export specific `privateMetadata` fields (from within [telemetry event parameters](/admin/telemetry/protocol#telemetrygateway-v1-EventParameters)).


The only `metadata` we collect by default are non-sensitive numeric values.
To learn more, refer to the [telemetry documentation](/admin/telemetry).
To learn more, refer to the [telemetry documentation](https://sourcegraph.com/docs/admin/telemetry).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • https://sourcegraph.com/docs/admin/telemetry: Absolute self-link; use "/admin/telemetry" instead
Suggested change
To learn more, refer to the [telemetry documentation](https://sourcegraph.com/docs/admin/telemetry).
To learn more, refer to the [telemetry documentation](/admin/telemetry).

This page contains the core schema for telemetry event data that gets exported from Sourcegraph.

To learn more, refer to our [telemetry documentation](/admin/telemetry).
To learn more, refer to our [telemetry documentation](https://sourcegraph.com/docs/admin/telemetry).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • https://sourcegraph.com/docs/admin/telemetry: Absolute self-link; use "/admin/telemetry" instead
Suggested change
To learn more, refer to our [telemetry documentation](https://sourcegraph.com/docs/admin/telemetry).
To learn more, refer to our [telemetry documentation](/admin/telemetry).

If your alert isn't mentioned here, or if the next steps don't help, [contact us](mailto:support@sourcegraph.com) for assistance.

To learn more about Sourcegraph's alerting and how to set up alerts, see [our alerting guide](/self-hosted/observability/alerting).
To learn more about Sourcegraph's alerting and how to set up alerts, see [our alerting guide](https://sourcegraph.com/docs/admin/observability/alerting).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • https://sourcegraph.com/docs/admin/observability/alerting: Absolute self-link to a moved page; use "/self-hosted/observability/alerting" instead
Suggested change
To learn more about Sourcegraph's alerting and how to set up alerts, see [our alerting guide](https://sourcegraph.com/docs/admin/observability/alerting).
To learn more about Sourcegraph's alerting and how to set up alerts, see [our alerting guide](/self-hosted/observability/alerting).

- **Kubernetes:** Check CPU usage of zoekt-webserver in the indexed-search pod, consider increasing CPU limits in the `indexed-search.Deployment.yaml` if regularly hitting max CPU utilization.
- **Docker Compose:** Check CPU usage on the Zoekt Web Server dashboard, consider increasing `cpus:` of the zoekt-webserver container in `docker-compose.yml` if regularly hitting max CPU utilization.
- This alert may indicate that your instance is struggling to process symbols queries on a monorepo, [learn more here](/admin/monorepo).
- This alert may indicate that your instance is struggling to process symbols queries on a monorepo, [learn more here](https://sourcegraph.com/docs/admin/monorepo).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • https://sourcegraph.com/docs/admin/monorepo: Absolute self-link; use "/admin/monorepo" instead
Suggested change
- This alert may indicate that your instance is struggling to process symbols queries on a monorepo, [learn more here](https://sourcegraph.com/docs/admin/monorepo).
- This alert may indicate that your instance is struggling to process symbols queries on a monorepo, [learn more here](/admin/monorepo).

**Next steps**

- Ensure that your [`observability.alerts` configuration](/self-hosted/observability/alerting#setting-up-alerting) (in site configuration) is valid.
- Ensure that your [`observability.alerts` configuration](https://sourcegraph.com/docs/admin/observability/alerting#setting-up-alerting) (in site configuration) is valid.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • https://sourcegraph.com/docs/admin/observability/alerting#setting-up-alerting: Absolute self-link to a moved page; use "/self-hosted/observability/alerting#setting-up-alerting" instead
Suggested change
- Ensure that your [`observability.alerts` configuration](https://sourcegraph.com/docs/admin/observability/alerting#setting-up-alerting) (in site configuration) is valid.
- Ensure that your [`observability.alerts` configuration](/self-hosted/observability/alerting#setting-up-alerting) (in site configuration) is valid.

@@ -4,7 +4,7 @@

This document contains a complete reference on Sourcegraph's available dashboards, as well as details on how to interpret the panels and metrics.

To learn more about Sourcegraph's metrics and how to view these dashboards, see [our metrics guide](/self-hosted/observability/metrics).
To learn more about Sourcegraph's metrics and how to view these dashboards, see [our metrics guide](https://sourcegraph.com/docs/admin/observability/metrics).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • https://sourcegraph.com/docs/admin/observability/metrics: Absolute self-link to a moved page; use "/self-hosted/observability/metrics" instead
Suggested change
To learn more about Sourcegraph's metrics and how to view these dashboards, see [our metrics guide](https://sourcegraph.com/docs/admin/observability/metrics).
To learn more about Sourcegraph's metrics and how to view these dashboards, see [our metrics guide](/self-hosted/observability/metrics).

@@ -16542,11 +16720,11 @@ max by (type) (ceil(rate(src_repo_perms_syncer_sync_errors_total[1m])))
<p class="subtitle">Rate of users/repos scheduled for permissions sync</p>

Indicates the per-minute rate at which users/repositories are scheduled for a permissions sync.
More about repository permissions synchronization [here](/admin/permissions/syncing#scheduling)
More about repository permissions synchronization [here](https://sourcegraph.com/docs/admin/permissions/syncing#scheduling)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • https://sourcegraph.com/docs/admin/permissions/syncing#scheduling: Absolute self-link; use "/admin/permissions/syncing#scheduling" instead
Suggested change
More about repository permissions synchronization [here](https://sourcegraph.com/docs/admin/permissions/syncing#scheduling)
More about repository permissions synchronization [here](/admin/permissions/syncing#scheduling)

@@ -26272,7 +26628,7 @@ sum by(job) (scrape_samples_post_metric_relabeling{job!=""})
A high value here indicates Prometheus rule evaluation is taking longer than expected.
It might indicate that certain rule groups are taking too long to evaluate, or Prometheus is underprovisioned.

Rules that Sourcegraph ships with are grouped under `/sg_config_prometheus`. [Custom rules are grouped under `/sg_prometheus_addons`](/self-hosted/observability/metrics#prometheus-configuration).
Rules that Sourcegraph ships with are grouped under `/sg_config_prometheus`. [Custom rules are grouped under `/sg_prometheus_addons`](https://sourcegraph.com/docs/admin/observability/metrics#prometheus-configuration).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • https://sourcegraph.com/docs/admin/observability/metrics#prometheus-configuration: Absolute self-link to a moved page; use "/self-hosted/observability/metrics#prometheus-configuration" instead
Suggested change
Rules that Sourcegraph ships with are grouped under `/sg_config_prometheus`. [Custom rules are grouped under `/sg_prometheus_addons`](https://sourcegraph.com/docs/admin/observability/metrics#prometheus-configuration).
Rules that Sourcegraph ships with are grouped under `/sg_config_prometheus`. [Custom rules are grouped under `/sg_prometheus_addons`](/self-hosted/observability/metrics#prometheus-configuration).

@@ -26296,7 +26652,7 @@ sum by(rule_group) (avg_over_time(prometheus_rule_group_last_duration_seconds[10

<p class="subtitle">Failed prometheus rule evaluations over 5m by rule group</p>

Rules that Sourcegraph ships with are grouped under `/sg_config_prometheus`. [Custom rules are grouped under `/sg_prometheus_addons`](/self-hosted/observability/metrics#prometheus-configuration).
Rules that Sourcegraph ships with are grouped under `/sg_config_prometheus`. [Custom rules are grouped under `/sg_prometheus_addons`](https://sourcegraph.com/docs/admin/observability/metrics#prometheus-configuration).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • https://sourcegraph.com/docs/admin/observability/metrics#prometheus-configuration: Absolute self-link to a moved page; use "/self-hosted/observability/metrics#prometheus-configuration" instead
Suggested change
Rules that Sourcegraph ships with are grouped under `/sg_config_prometheus`. [Custom rules are grouped under `/sg_prometheus_addons`](https://sourcegraph.com/docs/admin/observability/metrics#prometheus-configuration).
Rules that Sourcegraph ships with are grouped under `/sg_config_prometheus`. [Custom rules are grouped under `/sg_prometheus_addons`](/self-hosted/observability/metrics#prometheus-configuration).

@marcleblanc2

marcleblanc2 commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

I'm working on unblocking this in
https://github.com/sourcegraph/sourcegraph/pull/15632

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants