Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/admin/code-hosts/aws-codecommit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ AWS CodeCommit connections support the following configuration options, which ar

{/* SCHEMA_SYNC_START: admin/code_hosts/aws_codecommit.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2026-04-14T00:48:03Z */}
{/* Last updated: 2026-04-27T11:17:39Z */}
```json
{
// REQUIRED:
Expand Down
2 changes: 1 addition & 1 deletion docs/admin/code-hosts/azuredevops.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Azure DevOps connections support the following configuration options, which are

{/* SCHEMA_SYNC_START: admin/code_hosts/azuredevops.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2026-04-14T00:48:03Z */}
{/* Last updated: 2026-04-27T11:17:39Z */}
```json
// Authentication alternatives: token OR windowsPassword

Expand Down
2 changes: 1 addition & 1 deletion docs/admin/code-hosts/bitbucket-cloud.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Bitbucket Cloud connections support the following configuration options, which a

{/* SCHEMA_SYNC_START: admin/code_hosts/bitbucket_cloud.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2026-04-14T00:48:03Z */}
{/* Last updated: 2026-04-27T11:17:39Z */}
```json
{
// The workspace access token to use when authenticating with Bitbucket Cloud.
Expand Down
2 changes: 1 addition & 1 deletion docs/admin/code-hosts/bitbucket-server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Bitbucket Server / Bitbucket Data Center connections support the following confi

{/* SCHEMA_SYNC_START: admin/code_hosts/bitbucket_server.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2026-04-14T00:48:03Z */}
{/* Last updated: 2026-04-27T11:17:39Z */}
```json
// Authentication alternatives: token OR password

Expand Down
2 changes: 1 addition & 1 deletion docs/admin/code-hosts/gerrit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Gerrit connections support the following configuration options, which are specif

{/* SCHEMA_SYNC_START: admin/code_hosts/gerrit.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2026-04-14T00:48:03Z */}
{/* Last updated: 2026-04-27T11:17:39Z */}
```json
{
// If non-null, enforces Gerrit repository permissions. This requires that there is an item in the [site configuration json](https://sourcegraph.com/docs/admin/config/site_config#auth-providers) `auth.providers` field, of type "gerrit" with the same `url` field as specified in this `GerritConnection`.
Expand Down
2 changes: 1 addition & 1 deletion docs/admin/code-hosts/github.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ GitHub connections support the following configuration options, which are specif

{/* SCHEMA_SYNC_START: admin/code_hosts/github.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2026-04-14T00:48:03Z */}
{/* Last updated: 2026-04-27T11:17:39Z */}
```json
// Authentication alternatives: token OR gitHubAppDetails OR externalAccount OR useRandomExternalAccount

Expand Down
2 changes: 1 addition & 1 deletion docs/admin/code-hosts/gitlab.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ See [Internal rate limits](/admin/code-hosts/rate-limits#internal-rate-limits).

{/* SCHEMA_SYNC_START: admin/code_hosts/gitlab.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2026-04-14T00:48:03Z */}
{/* Last updated: 2026-04-27T11:17:39Z */}
```json
{
// If non-null, enforces GitLab repository permissions. This requires that there be an item in the `auth.providers` field of type "gitlab" with the same `url` field as specified in this `GitLabConnection`.
Expand Down
2 changes: 1 addition & 1 deletion docs/admin/code-hosts/gitolite.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To connect Gitolite to Sourcegraph:

{/* SCHEMA_SYNC_START: admin/code_hosts/gitolite.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2026-04-14T00:48:03Z */}
{/* Last updated: 2026-04-27T11:17:39Z */}
```json
{
// A list of repositories to never mirror from this Gitolite instance. Supports excluding by exact name ({"name": "foo"}).
Expand Down
2 changes: 1 addition & 1 deletion docs/admin/code-hosts/other.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Repositories must be listed individually:

{/* SCHEMA_SYNC_START: admin/code_hosts/other_external_service.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2026-04-14T00:48:03Z */}
{/* Last updated: 2026-04-27T11:17:39Z */}
```json
{
// A list of repositories to never mirror by name after applying repositoryPathPattern. Supports excluding by exact name ({"name": "myrepo"}) or regular expression ({"pattern": ".*secret.*"}).
Expand Down
2 changes: 1 addition & 1 deletion docs/admin/code-hosts/phabricator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ The Sourcegraph instance's site admin must [update the `corsOrigin` site config

{/* SCHEMA_SYNC_START: admin/code_hosts/phabricator.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2026-04-14T00:48:03Z */}
{/* Last updated: 2026-04-27T11:17:39Z */}
```json
{
// SSH cipher to use when cloning via SSH. Must be a valid choice from `ssh -Q cipher`.
Expand Down
6 changes: 4 additions & 2 deletions docs/admin/config/settings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Settings options and their default values are shown below.

{/* SCHEMA_SYNC_START: admin/config/settings.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2026-04-14T00:48:03Z */}
{/* Last updated: 2026-04-27T11:17:39Z */}
```json
{

Expand Down Expand Up @@ -68,6 +68,9 @@ Settings options and their default values are shown below.
// Whether to supplement precise references with search-based results.
"codeIntel.mixPreciseAndSearchBasedReferences": false,

// Controls whether you see AI-generated summaries in hover tooltips. Set to false to opt out.
"codeIntel.smartHover": true,

// Whether to enable trace logging on the extension.
"codeIntel.traceExtension": false,

Expand Down Expand Up @@ -102,7 +105,6 @@ Settings options and their default values are shown below.
"searchQueryInput": "v1",
"searchResultsAggregations": false,
"showCodeMonitoringLogs": false,
"smartHover": true,
"symbolKindTags": false
},

Expand Down
10 changes: 3 additions & 7 deletions docs/admin/config/site-config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ All site configuration options and their default values are shown below.

{/* SCHEMA_SYNC_START: admin/config/site.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2026-04-14T00:48:03Z */}
{/* Last updated: 2026-04-27T11:17:39Z */}
```json
{

Expand Down Expand Up @@ -284,7 +284,7 @@ All site configuration options and their default values are shown below.
"extsvc.gitlab": false
},
"deepSearch.enabled": false,
"deepSearch.model": "anthropic::2024-10-22::claude-sonnet-4-latest",
"deepSearch.model": "anthropic::2024-10-22::claude-sonnet-4-6-latest",
"deepSearch.sharing.enabled": false,
"deepSearch.showCodyWeb": false,
"enableGithubInternalRepoVisibility": false,
Expand Down Expand Up @@ -448,8 +448,6 @@ All site configuration options and their default values are shown below.
// Enable/disable MCP API endpoints under `/.api/mcp`. When disabled, MCP endpoints return 404.
"mcp.enabled": true,

// Recommended configuration for Cody models and providers.
// Prefer this over the legacy "completions" field.
"modelConfiguration": null,

// Notifications received from Sourcegraph.com to display in Sourcegraph.
Expand Down Expand Up @@ -857,9 +855,7 @@ All site configuration options and their default values are shown below.
// AI & Completions
//////////////////////////////////////////////////////////////

// DEPRECATED: Legacy configuration for Cody models.
// Prefer "modelConfiguration" for new deployments, and do not set this
// field if your instance is already configured with "modelConfiguration".
// Configuration for the completions service.
// Other example values:
// - {
// "accessToken": "abc123",
Expand Down
2 changes: 1 addition & 1 deletion docs/admin/repo/perforce.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ With this setting, Sourcegraph will ignore any rules with a host other than `*`,

{/* SCHEMA_SYNC_START: admin/code_hosts/perforce.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2026-04-14T00:48:03Z */}
{/* Last updated: 2026-04-27T11:17:39Z */}
```json
{
// If non-null, enforces Perforce depot permissions.
Expand Down
4 changes: 2 additions & 2 deletions docs/cli/references/extsvc/list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
|------|-------------|---------------|
| `-dump-requests` | Log GraphQL requests and responses to stdout | `false` |
| `-f` | Format for the output, using the syntax of Go package text/template. (e.g. "\{\{.\|json\}\}") | |
| `-first` | Return only the first n external services. (use -1 for unlimited) | `-1` |
| `-first` | Return only the first n external services. | `1000` |
| `-get-curl` | Print the curl command for executing this query and exit (WARNING: includes printing your access token!) | `false` |
| `-insecure-skip-verify` | Skip validation of TLS certificates against trusted chains | `false` |
| `-trace` | Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing | `false` |
Expand All @@ -23,7 +23,7 @@ Usage of 'src extsvc list':
-f string
Format for the output, using the syntax of Go package text/template. (e.g. "{{.|json}}")
-first int
Return only the first n external services. (use -1 for unlimited) (default -1)
Return only the first n external services. (default 1000)
-get-curl
Print the curl command for executing this query and exit (WARNING: includes printing your access token!)
-insecure-skip-verify
Expand Down
5 changes: 0 additions & 5 deletions docs/cli/references/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,20 @@

* [`admin`](references/admin)
* [`api`](references/api)
* [`auth`](references/auth)
* [`batch`](references/batch)
* [`code-intel`](references/code-intel)
* [`codeowners`](references/codeowners)
* [`config`](references/config)
* [`debug`](references/debug)
* [`extsvc`](references/extsvc)
* [`login`](references/login)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

cc @burmudar I think the move to the new CLI framework is causing our docgen to not consider those anymore

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.

Ah! Gotcha. Will update it - thanks!

* [`lsp`](references/lsp)
* [`orgs`](references/orgs)
* [`repos`](references/repos)
* [`sbom`](references/sbom)
* [`search`](references/search)
* [`search-jobs`](references/search-jobs)
* [`serve-git`](references/serve-git)
* [`signature`](references/signature)
* [`snapshot`](references/snapshot)
* [`teams`](references/teams)
* [`users`](references/users)
* [`validate`](references/validate)
* [`version`](references/version)

8 changes: 2 additions & 6 deletions docs/cli/references/orgs/list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
|------|-------------|---------------|
| `-dump-requests` | Log GraphQL requests and responses to stdout | `false` |
| `-f` | Format for the output, using the syntax of Go package text/template. (e.g. "\{\{.ID\}\}: \{\{.Name\}\} (\{\{.DisplayName\}\})" or "\{\{.\|json\}\}") | `{{.Name}}` |
| `-first` | Returns the first n organizations from the list. (use -1 for unlimited) | `1000` |
| `-first` | Returns the first n organizations from the list. | `1000` |
| `-get-curl` | Print the curl command for executing this query and exit (WARNING: includes printing your access token!) | `false` |
| `-insecure-skip-verify` | Skip validation of TLS certificates against trusted chains | `false` |
| `-query` | Returns organizations whose names match the query. (e.g. "alice") | |
Expand All @@ -24,7 +24,7 @@ Usage of 'src orgs list':
-f string
Format for the output, using the syntax of Go package text/template. (e.g. "{{.ID}}: {{.Name}} ({{.DisplayName}})" or "{{.|json}}") (default "{{.Name}}")
-first int
Returns the first n organizations from the list. (use -1 for unlimited) (default 1000)
Returns the first n organizations from the list. (default 1000)
-get-curl
Print the curl command for executing this query and exit (WARNING: includes printing your access token!)
-insecure-skip-verify
Expand All @@ -42,10 +42,6 @@ Examples:

$ src orgs list

List *all* organizations (may be slow!):

$ src orgs list -first='-1'

List organizations whose names match the query:

$ src orgs list -query='myquery'
Expand Down
8 changes: 2 additions & 6 deletions docs/cli/references/repos/list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| `-descending` | Whether or not results should be in descending order. | `false` |
| `-dump-requests` | Log GraphQL requests and responses to stdout | `false` |
| `-f` | Format for the output, using the syntax of Go package text/template. (e.g. "\{\{.ID\}\}: \{\{.Name\}\}") or "\{\{.\|json\}\}") | `{{.Name}}` |
| `-first` | Returns the first n repositories from the list. (use -1 for unlimited) | `1000` |
| `-first` | Returns the first n repositories from the list. | `1000` |
| `-get-curl` | Print the curl command for executing this query and exit (WARNING: includes printing your access token!) | `false` |
| `-indexed` | Include repositories that have a text search index. | `true` |
| `-insecure-skip-verify` | Skip validation of TLS certificates against trusted chains | `false` |
Expand All @@ -35,7 +35,7 @@ Usage of 'src repos list':
-f string
Format for the output, using the syntax of Go package text/template. (e.g. "{{.ID}}: {{.Name}}") or "{{.|json}}") (default "{{.Name}}")
-first int
Returns the first n repositories from the list. (use -1 for unlimited) (default 1000)
Returns the first n repositories from the list. (default 1000)
-get-curl
Print the curl command for executing this query and exit (WARNING: includes printing your access token!)
-indexed
Expand Down Expand Up @@ -67,10 +67,6 @@ Examples:

$ src repos list -f '{{.|json}}'

List *all* repositories (may be slow!):

$ src repos list -first='-1'

List repositories whose names match the query:

$ src repos list -query='myquery'
Expand Down
8 changes: 2 additions & 6 deletions docs/cli/references/users/list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
|------|-------------|---------------|
| `-dump-requests` | Log GraphQL requests and responses to stdout | `false` |
| `-f` | Format for the output, using the syntax of Go package text/template. (e.g. "\{\{.ID\}\}: \{\{.Username\}\} (\{\{.DisplayName\}\})" or "\{\{.\|json\}\}") | `{{.Username}}` |
| `-first` | Returns the first n users from the list. (use -1 for unlimited) | `1000` |
| `-first` | Returns the first n users from the list. | `1000` |
| `-get-curl` | Print the curl command for executing this query and exit (WARNING: includes printing your access token!) | `false` |
| `-insecure-skip-verify` | Skip validation of TLS certificates against trusted chains | `false` |
| `-query` | Returns users whose names match the query. (e.g. "alice") | |
Expand All @@ -25,7 +25,7 @@ Usage of 'src users list':
-f string
Format for the output, using the syntax of Go package text/template. (e.g. "{{.ID}}: {{.Username}} ({{.DisplayName}})" or "{{.|json}}") (default "{{.Username}}")
-first int
Returns the first n users from the list. (use -1 for unlimited) (default 1000)
Returns the first n users from the list. (default 1000)
-get-curl
Print the curl command for executing this query and exit (WARNING: includes printing your access token!)
-insecure-skip-verify
Expand All @@ -45,10 +45,6 @@ Examples:

$ src users list

List *all* users (may be slow!):

$ src users list -first='-1'

List users whose names match the query:

$ src users list -query='myquery'
Expand Down
49 changes: 21 additions & 28 deletions docs/cody/capabilities/supported-models.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ Cody supports a variety of cutting-edge large language models for use in chat an

| **Provider** | **Model** | **Status** | **Vision Support** |
| :----------- | :-------- | :--------- | :----------------- |
| Anthropic | [Claude Opus 4.6](https://docs.anthropic.com/en/docs/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Sonnet 4.6](https://docs.anthropic.com/en/docs/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Sonnet 4.6 with Thinking](https://docs.anthropic.com/en/docs/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Sonnet 4.5](https://docs.anthropic.com/en/docs/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Sonnet 4.5 with Thinking](https://docs.anthropic.com/en/docs/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Opus 4.5](https://docs.anthropic.com/en/docs/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Opus 4.5 with Thinking](https://docs.anthropic.com/en/docs/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Haiku 4.5](https://docs.anthropic.com/en/docs/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Haiku 4.5 with Thinking](https://docs.anthropic.com/en/docs/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Opus 4.7](https://platform.claude.com/docs/en/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Opus 4.6](https://platform.claude.com/docs/en/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Sonnet 4.6](https://platform.claude.com/docs/en/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Sonnet 4.6 with Thinking](https://platform.claude.com/docs/en/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Sonnet 4.5](https://platform.claude.com/docs/en/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Sonnet 4.5 with Thinking](https://platform.claude.com/docs/en/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Opus 4.5](https://platform.claude.com/docs/en/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Opus 4.5 with Thinking](https://platform.claude.com/docs/en/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Haiku 4.5](https://platform.claude.com/docs/en/about-claude/models/overview) | ✅ | ✅ |
| Anthropic | [Claude Haiku 4.5 with Thinking](https://platform.claude.com/docs/en/about-claude/models/overview) | ✅ | ✅ |
| Google | [Gemini 2.5 Flash](https://cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-5-flash) | ✅ | ✅ |
| Google | [Gemini 2.5 Pro](https://cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-5-pro) | ✅ | ✅ |
| Google | [Gemini 3 Flash](https://cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/3-flash) | ✅ | ❌ |
Expand Down Expand Up @@ -52,29 +53,21 @@ Cody supports a variety of cutting-edge large language models for use in chat an
## Autocomplete

Cody uses a set of models for autocomplete which are suited for the low latency use case.

| **Provider** | **Model** | **Status** |
| :----------- | :-------- | :--------- |
| Anthropic | [Claude Haiku 4.5](https://docs.anthropic.com/en/docs/about-claude/models/overview) | ✅ |
| Anthropic | [Claude Haiku 4.5 with Thinking](https://docs.anthropic.com/en/docs/about-claude/models/overview) | ✅ |
| Fireworks.ai | StarCoder | ✅ |
| Fireworks.ai | DeepSeek V2 Lite Base | ✅ |
| Fireworks.ai | AutoEdits Fireworks Default | ✅ (beta) |
| Fireworks.ai | Autoedits DeepSeek Coder V2 | ✅ (beta) |
| Fireworks.ai | Autoedits DeepSeek Coder V2 | ✅ (beta) |
| Fireworks.ai | Autoedits DeepSeek Coder V2 | ✅ (beta) |
| Fireworks.ai | Autoedits Long Suggestion V4 Warm Start SFT | ✅ (beta) |
| Fireworks.ai | NLS Query Translator | ✅ |
| OpenAI | [GPT-4.1-nano](https://platform.openai.com/docs/models/gpt-4.1-nano) | ✅ |
| **Provider** | **Model** | **Status** | **Hosting region** |
| :----------- | :-------- | :--------- | :----------------- |
| Anthropic | [Claude Haiku 4.5](https://platform.claude.com/docs/en/about-claude/models/overview) | ✅ | global |
| Anthropic | [Claude Haiku 4.5 with Thinking](https://platform.claude.com/docs/en/about-claude/models/overview) | ✅ | global |
| Fireworks.ai | DeepSeek V2 Lite Base | ✅ | US Iowa |
| Fireworks.ai | Autoedits Fine-Tune DeepSeek Coder V2 | ✅ | US Iowa |
| Fireworks.ai | NLS Query Translator | ✅ | US Iowa |
| OpenAI | [GPT-4.1-nano](https://platform.openai.com/docs/models/gpt-4.1-nano) | ✅ | global |



## Smart Apply

| **Provider** | **Model** | **Status** |
| :----------- | :-------- | :--------- |
| Fireworks.ai | Smart Apply Qwen Default | ✅ |
| Fireworks.ai | Smart Apply Qwen 32B V1 | ✅ (beta) |
| **Provider** | **Model** | **Status** | **Hosting region** |
| :----------- | :-------- | :--------- | :----------------- |
| Fireworks.ai | Smart Apply Fine-Tune Qwen 32B V1 | ✅ | US Iowa |

## Default Models

Expand Down
2 changes: 1 addition & 1 deletion docs/self-hosted/observability/alerts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5483,7 +5483,7 @@ Generated query for critical alert: `max(((proc_metrics_memory_map_current_count
<details>
<summary>Technical details</summary>

Generated query for warning alert: `max((sum by (code) (increase(src_zoekt_request_duration_seconds_count{code!~"2.."}[5m])) / ignoring (code) group_left () sum(increase(src_zoekt_request_duration_seconds_count[5m])) * 100) &gt;= 5)`
Custom query for warning alert: `max(((sum(increase(src_zoekt_request_duration_seconds_count{code="error"}[5m])) / sum(increase(src_zoekt_request_duration_seconds_count[5m])) * 100) and (sum(increase(src_zoekt_request_duration_seconds_count[5m])) &gt;= 50)) &gt;= 5)`

</details>

Expand Down
Loading