diff --git a/docs/admin/config/site-config.mdx b/docs/admin/config/site-config.mdx index 26014c212..f12d14039 100644 --- a/docs/admin/config/site-config.mdx +++ b/docs/admin/config/site-config.mdx @@ -336,6 +336,10 @@ All advanced configuration options and their default values are shown below. "enableGithubInternalRepoVisibility": false, "enablePermissionsWebhooks": false, "eventLogging": "enabled", + "execd": { + "enrollmentPublicKeys": null, + "gatewayURL": null + }, "gitServerPinnedRepos": null, "homepage": null, "insightsBackfillerV2": true, diff --git a/docs/ai/models.mdx b/docs/ai/models.mdx index 3c35c941c..1acb5e8bf 100644 --- a/docs/ai/models.mdx +++ b/docs/ai/models.mdx @@ -7,10 +7,10 @@ This reference lists the models currently used by [Sourcegraph AI features](/ai) | Model | Used by | | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| GPT-5.6 Luna | Change request file grouping, Deep Search compaction, [Diff Tour](/diff-tour), Agentic Batch Changes workspace analysis, Agentic Batch Changes schema help | +| GPT-5.6 Luna | Change request file grouping, Deep Search compaction, [Diff Tour](/diff-tour) | | Claude Sonnet 5.5 | Change request review report, [Deep Search](/deep-search) | | GPT-6 Luna | Deep Search categorization, Deep Search answer summaries, Deep Search titles, Agentic Batch Changes titles, Agentic Batch Changes categorization, Agentic Batch Changes diagnostics, Coding agent low Finder, Coding agent medium Finder, Coding agent high Finder | -| Claude Haiku 5.5 | [Code Finder](/api/mcp#code-finder), [Smart Hover](/code-navigation/smart-hover) | +| Claude Haiku 5.5 | [Code Finder](/api/mcp#code-finder), [Smart Hover](/code-navigation/smart-hover), Agentic Batch Changes workspace analysis, Agentic Batch Changes schema help | | Gemini 3.5 Flash-Lite | [Query Assist](/code-search/features#query-assist), Agentic Batch Changes repository search | | Claude Opus 5.5 | [Agentic Batch Changes](/agentic-batch-changes), Agentic Batch Changes compaction | | GPT-6.1 Sol | Coding agent low, Coding agent medium | diff --git a/docs/self-hosted/observability/alerts.mdx b/docs/self-hosted/observability/alerts.mdx index 19629ae84..503a1c5b8 100644 --- a/docs/self-hosted/observability/alerts.mdx +++ b/docs/self-hosted/observability/alerts.mdx @@ -7965,9 +7965,9 @@ Generated query for warning alert: `max((sum by (domain) (increase(src_dbworker_
Technical details -Generated query for warning alert: `max((sum(rate(rpc_server_duration_milliseconds_count{rpc_connect_error_code!=""}[5m])) / (sum(rate(rpc_server_duration_milliseconds_count[5m])) > 0) * 100) > 10)` +Generated query for warning alert: `max((sum(rate(rpc_server_call_duration_seconds_count{rpc_response_status_code!="OK"}[5m])) / (sum(rate(rpc_server_call_duration_seconds_count[5m])) > 0) * 100) > 10)` -Generated query for critical alert: `max((sum(rate(rpc_server_duration_milliseconds_count{rpc_connect_error_code!=""}[5m])) / (sum(rate(rpc_server_duration_milliseconds_count[5m])) > 0) * 100) > 25)` +Generated query for critical alert: `max((sum(rate(rpc_server_call_duration_seconds_count{rpc_response_status_code!="OK"}[5m])) / (sum(rate(rpc_server_call_duration_seconds_count[5m])) > 0) * 100) > 25)`
diff --git a/docs/self-hosted/observability/dashboards.mdx b/docs/self-hosted/observability/dashboards.mdx index ea1ab3050..ee809e1b6 100644 --- a/docs/self-hosted/observability/dashboards.mdx +++ b/docs/self-hosted/observability/dashboards.mdx @@ -10620,6 +10620,213 @@ sum by(app) (up{app=~".*gitserver"}) / count by (app) (up{app=~".*gitserver"}) *
+### Git Server: Continuity restores and manifest validation + +#### gitserver: continuity_restore_success_p95_duration + +

95th percentile successful restore duration by kind and planned download size class over 15m

+ +Elapsed time of successful continuity cache restores, grouped by instance, restore kind (full or incremental) and planned download size class. +Compare each series with the recovery budget for its size class rather than with a single threshold: large classes are expected to take longer. +Read this together with the completion rate panel; percentiles from a handful of restores are not representative. +See "Publication metrics and alert candidates" in cmd/gitserver/README.md for size class definitions and caveats, and use "continuity materialization finished" logs to investigate individual slow restores. + +This panel has no related alerts. + +To see this panel, visit `/-/debug/grafana/d/gitserver/gitserver?viewPanel=102800` on your Sourcegraph instance. + +*Managed by the Sourcegraph Services team.* + +
+Technical details + +Query: + +``` +histogram_quantile(0.95, sum by (instance, kind, size_class, le) (rate(src_gitserver_continuity_materialization_duration_seconds_bucket{instance=~`${shard:regex}`, outcome="success", size_class!=""}[15m]))) +``` +
+ +
+ +#### gitserver: continuity_restore_success_p99_duration + +

99th percentile successful restore duration by kind and planned download size class over 15m

+ +Tail latency of successful continuity cache restores, grouped by instance, restore kind and planned download size class. +This is the latency candidate described in cmd/gitserver/README.md: sustained values above the recovery budget for a size class suggest slow storage downloads, verification or Git indexing. +No alert is configured because recovery budgets have not yet been validated in production. + +This panel has no related alerts. + +To see this panel, visit `/-/debug/grafana/d/gitserver/gitserver?viewPanel=102801` on your Sourcegraph instance. + +*Managed by the Sourcegraph Services team.* + +
+Technical details + +Query: + +``` +histogram_quantile(0.99, sum by (instance, kind, size_class, le) (rate(src_gitserver_continuity_materialization_duration_seconds_bucket{instance=~`${shard:regex}`, outcome="success", size_class!=""}[15m]))) +``` +
+ +
+ +#### gitserver: continuity_restore_success_rate + +

Successful restores by kind and planned download size class over 15m

+ +Rate of successful continuity cache restores per size class. +Use this as the sample size for the restore duration percentiles: a class with very few restores can produce noisy or misleading percentiles. + +This panel has no related alerts. + +To see this panel, visit `/-/debug/grafana/d/gitserver/gitserver?viewPanel=102810` on your Sourcegraph instance. + +*Managed by the Sourcegraph Services team.* + +
+Technical details + +Query: + +``` +sum by (instance, kind, size_class) (rate(src_gitserver_continuity_materialization_duration_seconds_count{instance=~`${shard:regex}`, outcome="success", size_class!=""}[15m])) +``` +
+ +
+ +#### gitserver: continuity_restore_unsuccessful + +

Failed and canceled restores by kind and planned download size class over 15m

+ +Number of continuity cache restores that ended with an error or were canceled in the last 15 minutes. +Errors indicate integrity, download or Git failures; inspect gitserver logs and storage availability, and restore a healthy replica before returning it to service. +Cancellations, including those caused by intentional shutdowns, are not storage errors. + +This panel has no related alerts. + +To see this panel, visit `/-/debug/grafana/d/gitserver/gitserver?viewPanel=102811` on your Sourcegraph instance. + +*Managed by the Sourcegraph Services team.* + +
+Technical details + +Query: + +``` +sum by (instance, kind, outcome, size_class) (increase(src_gitserver_continuity_materialization_duration_seconds_count{instance=~`${shard:regex}`, outcome!="success"}[15m])) +``` +
+ +
+ +#### gitserver: continuity_restores_in_progress + +

Restores in progress by kind

+ +Number of continuity cache restores currently running. +Restores that remain in progress for longer than the largest expected restore, while the completion panels show no new restores of the same kind, may be stuck on downloads, Git processes or disk pressure. + +This panel has no related alerts. + +To see this panel, visit `/-/debug/grafana/d/gitserver/gitserver?viewPanel=102812` on your Sourcegraph instance. + +*Managed by the Sourcegraph Services team.* + +
+Technical details + +Query: + +``` +sum by (instance, kind) (src_gitserver_continuity_materializations_in_progress{instance=~`${shard:regex}`}) +``` +
+ +
+ +#### gitserver: continuity_manifest_validation_p99_duration + +

99th percentile successful manifest validation duration by result over 5m

+ +Tail latency of continuity manifest lookups against the configured authority, excluding errors and cancellations. +Missing authority is normal before a repository is first published. +Sustained high values point at PostgreSQL authority, storage availability or network latency. + +This panel has no related alerts. + +To see this panel, visit `/-/debug/grafana/d/gitserver/gitserver?viewPanel=102820` on your Sourcegraph instance. + +*Managed by the Sourcegraph Services team.* + +
+Technical details + +Query: + +``` +histogram_quantile(0.99, sum by (instance, result, le) (rate(src_gitserver_continuity_manifest_validation_duration_seconds_bucket{instance=~`${shard:regex}`, result=~"changed|unchanged|missing"}[5m]))) +``` +
+ +
+ +#### gitserver: continuity_manifest_validation_error_ratio + +

Manifest validation error ratio over 5m

+ +Percentage of continuity manifest lookups that failed. +Ratios from low lookup volumes are noisy; compare with the lookup rate before acting. +Check PostgreSQL authority, storage availability and permissions, and network latency. + +This panel has no related alerts. + +To see this panel, visit `/-/debug/grafana/d/gitserver/gitserver?viewPanel=102821` on your Sourcegraph instance. + +*Managed by the Sourcegraph Services team.* + +
+Technical details + +Query: + +``` +sum by (instance) (rate(src_gitserver_continuity_manifest_validation_duration_seconds_count{instance=~`${shard:regex}`, result="error"}[5m])) / sum by (instance) (rate(src_gitserver_continuity_manifest_validation_duration_seconds_count{instance=~`${shard:regex}`}[5m])) * 100 +``` +
+ +
+ +#### gitserver: continuity_manifest_validation_rate + +

Manifest validations by result over 5m

+ +Rate of continuity manifest lookups by result: changed, unchanged, missing, canceled or error. + +This panel has no related alerts. + +To see this panel, visit `/-/debug/grafana/d/gitserver/gitserver?viewPanel=102822` on your Sourcegraph instance. + +*Managed by the Sourcegraph Services team.* + +
+Technical details + +Query: + +``` +sum by (instance, result) (rate(src_gitserver_continuity_manifest_validation_duration_seconds_count{instance=~`${shard:regex}`}[5m])) +``` +
+ +
+ ## Postgres

Postgres metrics, exported from postgres_exporter (not available on server).

@@ -35926,7 +36133,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100600` Query: ``` -histogram_quantile(0.99, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.metering.v2.MeteringService",rpc_method=~"${metering_v2_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code=""}[2m]))) +histogram_quantile(0.99, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.metering\\.v2\\.MeteringService/.+",rpc_method=~"$metering_v2_method",job=~"${caller:regex}",rpc_response_status_code="OK"}[2m]))) ``` @@ -35950,7 +36157,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100601` Query: ``` -histogram_quantile(0.95, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.metering.v2.MeteringService",rpc_method=~"${metering_v2_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code=""}[2m]))) +histogram_quantile(0.95, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.metering\\.v2\\.MeteringService/.+",rpc_method=~"$metering_v2_method",job=~"${caller:regex}",rpc_response_status_code="OK"}[2m]))) ``` @@ -35974,7 +36181,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100602` Query: ``` -histogram_quantile(0.90, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.metering.v2.MeteringService",rpc_method=~"${metering_v2_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code=""}[2m]))) +histogram_quantile(0.90, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.metering\\.v2\\.MeteringService/.+",rpc_method=~"$metering_v2_method",job=~"${caller:regex}",rpc_response_status_code="OK"}[2m]))) ``` @@ -35998,7 +36205,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100610` Query: ``` -histogram_quantile(0.99, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.metering.v2.MeteringService",rpc_method=~"${metering_v2_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m]))) +histogram_quantile(0.99, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.metering\\.v2\\.MeteringService/.+",rpc_method=~"$metering_v2_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m]))) ``` @@ -36022,7 +36229,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100611` Query: ``` -histogram_quantile(0.95, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.metering.v2.MeteringService",rpc_method=~"${metering_v2_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m]))) +histogram_quantile(0.95, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.metering\\.v2\\.MeteringService/.+",rpc_method=~"$metering_v2_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m]))) ``` @@ -36046,7 +36253,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100612` Query: ``` -histogram_quantile(0.90, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.metering.v2.MeteringService",rpc_method=~"${metering_v2_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m]))) +histogram_quantile(0.90, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.metering\\.v2\\.MeteringService/.+",rpc_method=~"$metering_v2_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m]))) ``` @@ -36070,7 +36277,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100620` Query: ``` -sum by (rpc_method) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.metering.v2.MeteringService",rpc_method=~"${metering_v2_method:regex}",job=~"${caller:regex}"}[5m])) +sum by (rpc_method) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.metering\\.v2\\.MeteringService/.+",rpc_method=~"$metering_v2_method",job=~"${caller:regex}"}[5m])) ``` @@ -36094,7 +36301,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100630` Query: ``` -(100 * sum by (rpc_method) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.metering.v2.MeteringService",rpc_method=~"${metering_v2_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m]))) / sum by (rpc_method) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.metering.v2.MeteringService",rpc_method=~"${metering_v2_method:regex}",job=~"${caller:regex}"}[2m])) +(100 * sum by (rpc_method) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.metering\\.v2\\.MeteringService/.+",rpc_method=~"$metering_v2_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m]))) / sum by (rpc_method) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.metering\\.v2\\.MeteringService/.+",rpc_method=~"$metering_v2_method",job=~"${caller:regex}"}[2m])) ``` @@ -36118,7 +36325,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100631` Query: ``` -label_replace(sum by (rpc_method, rpc_connect_rpc_error_code) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.metering.v2.MeteringService",rpc_method=~"${metering_v2_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m])), "rpc_connect_rpc_error_code", "ok", "rpc_connect_rpc_error_code", "") +sum by (rpc_method, rpc_response_status_code) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.metering\\.v2\\.MeteringService/.+",rpc_method=~"$metering_v2_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m])) ``` @@ -36128,7 +36335,7 @@ label_replace(sum by (rpc_method, rpc_connect_rpc_error_code) (rate(rpc_client_d

Connect response code distribution per method over 2m

-Rate of outbound Connect calls to enterpriseportal.metering.v2.MeteringService per method, broken down by rpc_connect_rpc_error_code. Successful calls (which carry no error-code attribute) are normalized to "ok". +Rate of outbound Connect calls to enterpriseportal.metering.v2.MeteringService per method, broken down by rpc_response_status_code. This panel has no related alerts. @@ -36142,7 +36349,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100640` Query: ``` -label_replace(sum by (rpc_method, rpc_connect_rpc_error_code) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.metering.v2.MeteringService",rpc_method=~"${metering_v2_method:regex}",job=~"${caller:regex}"}[2m])), "rpc_connect_rpc_error_code", "ok", "rpc_connect_rpc_error_code", "") +sum by (rpc_method, rpc_response_status_code) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.metering\\.v2\\.MeteringService/.+",rpc_method=~"$metering_v2_method",job=~"${caller:regex}"}[2m])) ``` @@ -36168,7 +36375,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100700` Query: ``` -histogram_quantile(0.99, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.metering.v1.MeteringService",rpc_method=~"${metering_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code=""}[2m]))) +histogram_quantile(0.99, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.metering\\.v1\\.MeteringService/.+",rpc_method=~"$metering_v1_method",job=~"${caller:regex}",rpc_response_status_code="OK"}[2m]))) ``` @@ -36192,7 +36399,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100701` Query: ``` -histogram_quantile(0.95, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.metering.v1.MeteringService",rpc_method=~"${metering_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code=""}[2m]))) +histogram_quantile(0.95, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.metering\\.v1\\.MeteringService/.+",rpc_method=~"$metering_v1_method",job=~"${caller:regex}",rpc_response_status_code="OK"}[2m]))) ``` @@ -36216,7 +36423,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100702` Query: ``` -histogram_quantile(0.90, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.metering.v1.MeteringService",rpc_method=~"${metering_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code=""}[2m]))) +histogram_quantile(0.90, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.metering\\.v1\\.MeteringService/.+",rpc_method=~"$metering_v1_method",job=~"${caller:regex}",rpc_response_status_code="OK"}[2m]))) ``` @@ -36240,7 +36447,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100710` Query: ``` -histogram_quantile(0.99, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.metering.v1.MeteringService",rpc_method=~"${metering_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m]))) +histogram_quantile(0.99, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.metering\\.v1\\.MeteringService/.+",rpc_method=~"$metering_v1_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m]))) ``` @@ -36264,7 +36471,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100711` Query: ``` -histogram_quantile(0.95, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.metering.v1.MeteringService",rpc_method=~"${metering_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m]))) +histogram_quantile(0.95, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.metering\\.v1\\.MeteringService/.+",rpc_method=~"$metering_v1_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m]))) ``` @@ -36288,7 +36495,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100712` Query: ``` -histogram_quantile(0.90, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.metering.v1.MeteringService",rpc_method=~"${metering_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m]))) +histogram_quantile(0.90, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.metering\\.v1\\.MeteringService/.+",rpc_method=~"$metering_v1_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m]))) ``` @@ -36312,7 +36519,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100720` Query: ``` -sum by (rpc_method) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.metering.v1.MeteringService",rpc_method=~"${metering_v1_method:regex}",job=~"${caller:regex}"}[5m])) +sum by (rpc_method) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.metering\\.v1\\.MeteringService/.+",rpc_method=~"$metering_v1_method",job=~"${caller:regex}"}[5m])) ``` @@ -36336,7 +36543,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100730` Query: ``` -(100 * sum by (rpc_method) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.metering.v1.MeteringService",rpc_method=~"${metering_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m]))) / sum by (rpc_method) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.metering.v1.MeteringService",rpc_method=~"${metering_v1_method:regex}",job=~"${caller:regex}"}[2m])) +(100 * sum by (rpc_method) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.metering\\.v1\\.MeteringService/.+",rpc_method=~"$metering_v1_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m]))) / sum by (rpc_method) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.metering\\.v1\\.MeteringService/.+",rpc_method=~"$metering_v1_method",job=~"${caller:regex}"}[2m])) ``` @@ -36360,7 +36567,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100731` Query: ``` -label_replace(sum by (rpc_method, rpc_connect_rpc_error_code) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.metering.v1.MeteringService",rpc_method=~"${metering_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m])), "rpc_connect_rpc_error_code", "ok", "rpc_connect_rpc_error_code", "") +sum by (rpc_method, rpc_response_status_code) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.metering\\.v1\\.MeteringService/.+",rpc_method=~"$metering_v1_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m])) ``` @@ -36370,7 +36577,7 @@ label_replace(sum by (rpc_method, rpc_connect_rpc_error_code) (rate(rpc_client_d

Connect response code distribution per method over 2m

-Rate of outbound Connect calls to enterpriseportal.metering.v1.MeteringService per method, broken down by rpc_connect_rpc_error_code. Successful calls (which carry no error-code attribute) are normalized to "ok". +Rate of outbound Connect calls to enterpriseportal.metering.v1.MeteringService per method, broken down by rpc_response_status_code. This panel has no related alerts. @@ -36384,7 +36591,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100740` Query: ``` -label_replace(sum by (rpc_method, rpc_connect_rpc_error_code) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.metering.v1.MeteringService",rpc_method=~"${metering_v1_method:regex}",job=~"${caller:regex}"}[2m])), "rpc_connect_rpc_error_code", "ok", "rpc_connect_rpc_error_code", "") +sum by (rpc_method, rpc_response_status_code) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.metering\\.v1\\.MeteringService/.+",rpc_method=~"$metering_v1_method",job=~"${caller:regex}"}[2m])) ``` @@ -36410,7 +36617,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100800` Query: ``` -histogram_quantile(0.99, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.broadcastmessages.v1.BroadcastMessagesService",rpc_method=~"${broadcast_messages_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code=""}[2m]))) +histogram_quantile(0.99, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.broadcastmessages\\.v1\\.BroadcastMessagesService/.+",rpc_method=~"$broadcast_messages_v1_method",job=~"${caller:regex}",rpc_response_status_code="OK"}[2m]))) ``` @@ -36434,7 +36641,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100801` Query: ``` -histogram_quantile(0.95, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.broadcastmessages.v1.BroadcastMessagesService",rpc_method=~"${broadcast_messages_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code=""}[2m]))) +histogram_quantile(0.95, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.broadcastmessages\\.v1\\.BroadcastMessagesService/.+",rpc_method=~"$broadcast_messages_v1_method",job=~"${caller:regex}",rpc_response_status_code="OK"}[2m]))) ``` @@ -36458,7 +36665,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100802` Query: ``` -histogram_quantile(0.90, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.broadcastmessages.v1.BroadcastMessagesService",rpc_method=~"${broadcast_messages_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code=""}[2m]))) +histogram_quantile(0.90, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.broadcastmessages\\.v1\\.BroadcastMessagesService/.+",rpc_method=~"$broadcast_messages_v1_method",job=~"${caller:regex}",rpc_response_status_code="OK"}[2m]))) ``` @@ -36482,7 +36689,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100810` Query: ``` -histogram_quantile(0.99, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.broadcastmessages.v1.BroadcastMessagesService",rpc_method=~"${broadcast_messages_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m]))) +histogram_quantile(0.99, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.broadcastmessages\\.v1\\.BroadcastMessagesService/.+",rpc_method=~"$broadcast_messages_v1_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m]))) ``` @@ -36506,7 +36713,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100811` Query: ``` -histogram_quantile(0.95, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.broadcastmessages.v1.BroadcastMessagesService",rpc_method=~"${broadcast_messages_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m]))) +histogram_quantile(0.95, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.broadcastmessages\\.v1\\.BroadcastMessagesService/.+",rpc_method=~"$broadcast_messages_v1_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m]))) ``` @@ -36530,7 +36737,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100812` Query: ``` -histogram_quantile(0.90, sum by (le, rpc_method) (rate(rpc_client_duration_milliseconds_bucket{rpc_service="enterpriseportal.broadcastmessages.v1.BroadcastMessagesService",rpc_method=~"${broadcast_messages_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m]))) +histogram_quantile(0.90, sum by (le, rpc_method) (rate(rpc_client_call_duration_seconds_bucket{rpc_method=~"enterpriseportal\\.broadcastmessages\\.v1\\.BroadcastMessagesService/.+",rpc_method=~"$broadcast_messages_v1_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m]))) ``` @@ -36554,7 +36761,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100820` Query: ``` -sum by (rpc_method) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.broadcastmessages.v1.BroadcastMessagesService",rpc_method=~"${broadcast_messages_v1_method:regex}",job=~"${caller:regex}"}[5m])) +sum by (rpc_method) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.broadcastmessages\\.v1\\.BroadcastMessagesService/.+",rpc_method=~"$broadcast_messages_v1_method",job=~"${caller:regex}"}[5m])) ``` @@ -36578,7 +36785,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100830` Query: ``` -(100 * sum by (rpc_method) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.broadcastmessages.v1.BroadcastMessagesService",rpc_method=~"${broadcast_messages_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m]))) / sum by (rpc_method) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.broadcastmessages.v1.BroadcastMessagesService",rpc_method=~"${broadcast_messages_v1_method:regex}",job=~"${caller:regex}"}[2m])) +(100 * sum by (rpc_method) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.broadcastmessages\\.v1\\.BroadcastMessagesService/.+",rpc_method=~"$broadcast_messages_v1_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m]))) / sum by (rpc_method) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.broadcastmessages\\.v1\\.BroadcastMessagesService/.+",rpc_method=~"$broadcast_messages_v1_method",job=~"${caller:regex}"}[2m])) ``` @@ -36602,7 +36809,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100831` Query: ``` -label_replace(sum by (rpc_method, rpc_connect_rpc_error_code) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.broadcastmessages.v1.BroadcastMessagesService",rpc_method=~"${broadcast_messages_v1_method:regex}",job=~"${caller:regex}",rpc_connect_rpc_error_code!=""}[2m])), "rpc_connect_rpc_error_code", "ok", "rpc_connect_rpc_error_code", "") +sum by (rpc_method, rpc_response_status_code) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.broadcastmessages\\.v1\\.BroadcastMessagesService/.+",rpc_method=~"$broadcast_messages_v1_method",job=~"${caller:regex}",rpc_response_status_code!="OK"}[2m])) ``` @@ -36612,7 +36819,7 @@ label_replace(sum by (rpc_method, rpc_connect_rpc_error_code) (rate(rpc_client_d

Connect response code distribution per method over 2m

-Rate of outbound Connect calls to enterpriseportal.broadcastmessages.v1.BroadcastMessagesService per method, broken down by rpc_connect_rpc_error_code. Successful calls (which carry no error-code attribute) are normalized to "ok". +Rate of outbound Connect calls to enterpriseportal.broadcastmessages.v1.BroadcastMessagesService per method, broken down by rpc_response_status_code. This panel has no related alerts. @@ -36626,7 +36833,7 @@ To see this panel, visit `/-/debug/grafana/d/metering/metering?viewPanel=100840` Query: ``` -label_replace(sum by (rpc_method, rpc_connect_rpc_error_code) (rate(rpc_client_duration_milliseconds_count{rpc_service="enterpriseportal.broadcastmessages.v1.BroadcastMessagesService",rpc_method=~"${broadcast_messages_v1_method:regex}",job=~"${caller:regex}"}[2m])), "rpc_connect_rpc_error_code", "ok", "rpc_connect_rpc_error_code", "") +sum by (rpc_method, rpc_response_status_code) (rate(rpc_client_call_duration_seconds_count{rpc_method=~"enterpriseportal\\.broadcastmessages\\.v1\\.BroadcastMessagesService/.+",rpc_method=~"$broadcast_messages_v1_method",job=~"${caller:regex}"}[2m])) ``` @@ -39656,7 +39863,7 @@ To see this panel, visit `/-/debug/grafana/d/externalapi/externalapi?viewPanel=1 Query: ``` -sum by (rpc_service)(rate(rpc_server_duration_milliseconds_count{rpc_service=~"$rpc_service"}[5m])) +sum by (rpc_service)(label_replace(rate(rpc_server_call_duration_seconds_count{rpc_method=~"$rpc_method"}[5m]), "rpc_service", "$1", "rpc_method", "(.+)/[^/]+")) ``` @@ -39680,7 +39887,7 @@ To see this panel, visit `/-/debug/grafana/d/externalapi/externalapi?viewPanel=1 Query: ``` -sum by (rpc_method)(rate(rpc_server_duration_milliseconds_count{rpc_service=~"$rpc_service"}[5m])) +sum by (rpc_method)(rate(rpc_server_call_duration_seconds_count{rpc_method=~"$rpc_method"}[5m])) ``` @@ -39704,7 +39911,7 @@ To see this panel, visit `/-/debug/grafana/d/externalapi/externalapi?viewPanel=1 Query: ``` -sum(rate(rpc_server_duration_milliseconds_count{rpc_service=~"$rpc_service",rpc_connect_error_code!=""}[5m])) / (sum(rate(rpc_server_duration_milliseconds_count{rpc_service=~"$rpc_service"}[5m])) > 0) * 100 +sum(rate(rpc_server_call_duration_seconds_count{rpc_method=~"$rpc_method",rpc_response_status_code!="OK"}[5m])) / (sum(rate(rpc_server_call_duration_seconds_count{rpc_method=~"$rpc_method"}[5m])) > 0) * 100 ``` @@ -39728,7 +39935,7 @@ To see this panel, visit `/-/debug/grafana/d/externalapi/externalapi?viewPanel=1 Query: ``` -sum by (rpc_connect_error_code)(rate(rpc_server_duration_milliseconds_count{rpc_service=~"$rpc_service",rpc_connect_error_code!=""}[5m])) +sum by (rpc_response_status_code)(rate(rpc_server_call_duration_seconds_count{rpc_method=~"$rpc_method",rpc_response_status_code!="OK"}[5m])) ``` @@ -39754,7 +39961,7 @@ To see this panel, visit `/-/debug/grafana/d/externalapi/externalapi?viewPanel=1 Query: ``` -histogram_quantile(0.99, sum by (le)(rate(rpc_server_duration_milliseconds_bucket{rpc_service=~"$rpc_service"}[5m]))) +histogram_quantile(0.99, sum by (le)(rate(rpc_server_call_duration_seconds_bucket{rpc_method=~"$rpc_method"}[5m]))) ``` @@ -39778,7 +39985,7 @@ To see this panel, visit `/-/debug/grafana/d/externalapi/externalapi?viewPanel=1 Query: ``` -histogram_quantile(0.90, sum by (le)(rate(rpc_server_duration_milliseconds_bucket{rpc_service=~"$rpc_service"}[5m]))) +histogram_quantile(0.90, sum by (le)(rate(rpc_server_call_duration_seconds_bucket{rpc_method=~"$rpc_method"}[5m]))) ``` @@ -39802,7 +40009,7 @@ To see this panel, visit `/-/debug/grafana/d/externalapi/externalapi?viewPanel=1 Query: ``` -histogram_quantile(0.50, sum by (le)(rate(rpc_server_duration_milliseconds_bucket{rpc_service=~"$rpc_service"}[5m]))) +histogram_quantile(0.50, sum by (le)(rate(rpc_server_call_duration_seconds_bucket{rpc_method=~"$rpc_method"}[5m]))) ``` @@ -39826,7 +40033,7 @@ To see this panel, visit `/-/debug/grafana/d/externalapi/externalapi?viewPanel=1 Query: ``` -histogram_quantile(0.99, sum by (le, rpc_method)(rate(rpc_server_duration_milliseconds_bucket{rpc_service=~"$rpc_service"}[5m]))) +histogram_quantile(0.99, sum by (le, rpc_method)(rate(rpc_server_call_duration_seconds_bucket{rpc_method=~"$rpc_method"}[5m]))) ``` @@ -39850,57 +40057,7 @@ To see this panel, visit `/-/debug/grafana/d/externalapi/externalapi?viewPanel=1 Query: ``` -histogram_quantile(0.50, sum by (le, rpc_method)(rate(rpc_server_duration_milliseconds_bucket{rpc_service=~"$rpc_service"}[5m]))) -``` - - -
- -### Sourcegraph external API: Request and response sizes - -#### externalapi: externalapi_p99_request_size - -

99th percentile request size

- -99th percentile external API request message size. - -This panel has no related alerts. - -To see this panel, visit `/-/debug/grafana/d/externalapi/externalapi?viewPanel=100200` on your Sourcegraph instance. - -*Managed by the Sourcegraph Platform team.* - -
-Technical details - -Query: - -``` -histogram_quantile(0.99, sum by (le)(rate(rpc_server_request_size_bytes_bucket{rpc_service=~"$rpc_service"}[5m]))) -``` -
- -
- -#### externalapi: externalapi_p99_response_size - -

99th percentile response size

- -99th percentile external API response message size. - -This panel has no related alerts. - -To see this panel, visit `/-/debug/grafana/d/externalapi/externalapi?viewPanel=100201` on your Sourcegraph instance. - -*Managed by the Sourcegraph Platform team.* - -
-Technical details - -Query: - -``` -histogram_quantile(0.99, sum by (le)(rate(rpc_server_response_size_bytes_bucket{rpc_service=~"$rpc_service"}[5m]))) +histogram_quantile(0.50, sum by (le, rpc_method)(rate(rpc_server_call_duration_seconds_bucket{rpc_method=~"$rpc_method"}[5m]))) ```