Skip to content

[anomalydetection] Smart adaptive log sampling bridge module 2/4 - #53430

Closed
CelianR wants to merge 23 commits into
celian/severityevents-configfrom
celian/smartadaptivesampling
Closed

[anomalydetection] Smart adaptive log sampling bridge module 2/4#53430
CelianR wants to merge 23 commits into
celian/severityevents-configfrom
celian/smartadaptivesampling

Conversation

@CelianR

@CelianR CelianR commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Note

Feature documentation.
You can review commit by commit:

This adds the dynamicadaptivesampling module, the bridge that receives anomaly detection severity events and exposes the current severity level to consumers, and wires it into the agent run command. It is not yet consumed by anything (the sampler doesn't read it yet) — see the follow-up PRs in this stack (2/3, 3/3).

Adds:

  • dynamicadaptivesampling module, the bridge that receives anomaly events
  • Wires dynamicadaptivesampling.Module() into the agent run command

Motivation

Describe how you validated your changes

Additional Notes

Design note: dynamicadaptivesampling receives events from anomaly detection and is used as a bridge such that the samplers read the events from there.

Screenshot 2026-07-09 at 09 41 50

CelianR and others added 21 commits July 2, 2026 10:48
Move push subscription delivery, cooldown, and filtering out of the anomaly scorer into a standalone severityevents package, so the scorer only derives severity state and future consumers can depend on a small reusable leaf package instead of the full observer surface.

Co-authored-by: Cursor <cursoragent@cursor.com>
A subscription that joins mid-stream previously adopted the current level as a silent baseline and only learned about future transitions, never the state it joined into. Dispatcher now remembers the last level fed via Advance and delivers it as an initial synthetic event (FromLevel == ToLevel, Direction == Both) before SubscribeScorer returns, so late subscribers can see the current state right away. Directional filters correctly exclude this non-directional event, and Reset clears the remembered level so it isn't replayed as stale after a reset.

Co-authored-by: Cursor <cursoragent@cursor.com>
The severityevents package's exported types still carried an "AnomalyScorer" prefix left over from before the extraction out of observer/def, which stuttered when referenced from other packages (severityeventsdef.AnomalyScorerConfiguration). Rename AnomalyScorerConfiguration/AnomalyScorerEventFilter/AnomalyScorerListener/AnomalyScorerEventDirection (and its constants) to SeverityEventsConfiguration/SeverityEventFilter/SeverityEventListener/SeverityEventDirection, matching the package's own domain instead of the scorer that used to own it. The SubscribeScorer method name is left unchanged since it is structurally shared with observer.Component and renaming it would ripple beyond this package.

Also fixes a stale reference in pkg/aggregator/observer_handle_test.go, which predated this rename: it referenced observer.AnomalyScorerConfiguration, a type that had already moved out of observer/def into severityevents/def in an earlier commit and was left uncompilable.

Co-authored-by: Cursor <cursoragent@cursor.com>
Cover the new severityevents/{def,impl} package, its relationship to the anomaly scorer, the mid-stream initial-delivery behavior, and the single-writer assumption on Dispatcher.Advance/Reset.

Co-authored-by: Cursor <cursoragent@cursor.com>
…vents references.

- comp/anomalydetection/observer/impl/BUILD.bazel: fix dep ordering flagged by buildifier.
- comp/anomalydetection/severityevents/def/component.go -> contract.go: rename so the components lint tool stops treating this plain contract package as a formal v2 Fx component requiring a `type Component interface` (severityevents has no fx wiring, matching the precedent set by comp/def and comp/core/delegatedauth/def).
- go.mod, comp/anomalydetection/{recorder,severityevents}/def/go.mod, internal/qbranch/anomalydetection-testbench/go.mod: add the missing replace/require entries for the new severityevents/def module so go mod tidy resolves across every module that transitively depends on observer/def.
- comp/anomalydetection/reporter/impl/notify.go and internal/qbranch/anomalydetection-testbench/bench/api.go: fix stale references to observerdef.SeverityLevel/SeverityEvent/AnomalyScorerConfiguration, types that moved to severityevents/def in an earlier commit and were left uncompilable outside the observer package's own bazel targets.

Co-authored-by: Cursor <cursoragent@cursor.com>
Brief overview of the def/impl split, the scorer's relationship to the Dispatcher, and the mid-stream initial-delivery behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Run `dda inv modules.add-all-replace` to add the missing severityevents/def replace entry to every module's go.mod (the check_modules_replace CI job enforces that every local module's replace block is fully regenerated and in sync, not just the modules that directly need it to compile).
- Run `bazel run //:gazelle` to add the missing severityevents/def test dep to observer/impl's go_test target, and to normalize severityevents/impl's BUILD.bazel single-item srcs lists to gazelle's inline style.
- Add the missing package doc comment to severityeventsimpl (dispatcher.go), fixing a revive/package-comments lint failure.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Only start a subscription's cooldown clock when the initial synthetic event actually passes cfg.Filter. A filtered-out initial event (e.g. a de-escalations-only subscriber joining while already High) previously still seeded lastStateEntryTs, which could suppress that listener's very first real transition even though it never received anything.
- Defer publishing a new subscription into d.subs until after its initial event has been delivered, so a concurrent Advance can never see (and advance) a subscription before its own initial snapshot has been sent. Previously the subscription was appended before the callback fired outside the lock, leaving a window where a real transition could reach the listener ahead of its initial state.

Both fixes are covered by new deterministic regression tests (the second reproduces the ordering race via a reentrant Advance call fired from inside the initial callback itself, avoiding a flaky goroutine-based test).

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep one listener per dispatcher so subscribe-time ordering logic disappears, and treat Low as the default baseline so the first non-Low observation emits a real escalation event.

Co-authored-by: Cursor <cursoragent@cursor.com>
Resolve upstream go.mod conflicts by taking main's removal of pkg/config/viperconfig and matching the related replace cleanup in pkg/security/seclwin/go.mod.

Co-authored-by: Cursor <cursoragent@cursor.com>
Provide a cheap lock-free snapshot API for anomaly-detection consumers that need the current severity level without owning callback state, built directly on the severityevents Subscriber contract from the push-dispatcher PR. A subscriber joining mid-stream now picks up the current level immediately, via the dispatcher's initial-delivery behavior.

Rebased onto the updated celian/severityevents-push branch (renamed types, contract.go, CI fixes); this used to be celian/severityevents.

Co-authored-by: Cursor <cursoragent@cursor.com>
…eader

Replace Reader.Unsubscribe() with a SeverityEventsReaderSubscription
struct bundling the Reader and its Unsubscribe func, keeping Reader a
pure read-only view.

Co-authored-by: Cursor <cursoragent@cursor.com>
The cfg param is unused in the test fake's body; rename to _ to satisfy
the revive unused-parameter check.

Co-authored-by: Cursor <cursoragent@cursor.com>
…-pull

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	comp/anomalydetection/observer/def/component.go
#	comp/anomalydetection/observer/impl/anomaly_scorer.go
#	comp/anomalydetection/observer/impl/anomaly_scorer_test.go
#	comp/anomalydetection/observer/impl/observer.go
#	comp/anomalydetection/severityevents/README.md
#	comp/anomalydetection/severityevents/def/contract.go
#	comp/anomalydetection/severityevents/def/types.go
#	comp/anomalydetection/severityevents/impl/BUILD.bazel
#	comp/anomalydetection/severityevents/impl/dispatcher.go
#	comp/anomalydetection/severityevents/impl/dispatcher_test.go
#	internal/qbranch/anomalydetection-testbench/bench/api.go
#	pkg/aggregator/observer_handle_test.go
Introduces the shared anomaly-detection config-gate component
(comp/anomalydetection/config/{def,impl}) with AnomalyDetectionEnabled and
AnomalyScorerEnabled helpers, and the full
logs_config.experimental_adaptive_sampling.smart_severity_profiles config
tree: enabled, medium/high rate_limit, burst_size, pass_through, and
cooldown. Observer, logssource, and demultiplexer sub-gates consult
effective enablement so smart severity profiles implicitly enable analysis
and the anomaly scorer even when left unset, warning via Warnf only when
the user explicitly set anomaly_detection.enabled: false.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Replace *_secs integer settings with duration-typed keys (window, cooldown,
point_retention) parsed via GetDuration and stored as seconds internally,
with correct duration schema metadata (format: duration, golang_type:duration).

Co-authored-by: Cursor <cursoragent@cursor.com>
pkg/logs/dynamicadaptivesampling bridges the anomaly-detection observer's
severity reader to the log sampler: SetReader/Current() expose the last
published SeverityLevel via an atomic pointer, and Module() subscribes to
the observer's severity reader on startup (guarded by the smart severity
profiles config key).

Co-authored-by: Cursor <cursoragent@cursor.com>
@CelianR CelianR added changelog/no-changelog No changelog entry needed qa/done QA done before merge and regressions are covered by tests labels Jul 9, 2026
@CelianR CelianR self-assigned this Jul 9, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
@dd-octo-sts

dd-octo-sts Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Go Package Import Differences

Baseline: 08d84a7
Comparison: d24173b

binaryosarchchange
agentlinuxamd64
+3, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl
+github.com/DataDog/datadog-agent/pkg/logs/smartadaptivesampling
agentlinuxarm64
+3, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl
+github.com/DataDog/datadog-agent/pkg/logs/smartadaptivesampling
agentwindowsamd64
+3, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl
+github.com/DataDog/datadog-agent/pkg/logs/smartadaptivesampling
agentdarwinamd64
+3, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl
+github.com/DataDog/datadog-agent/pkg/logs/smartadaptivesampling
agentdarwinarm64
+3, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl
+github.com/DataDog/datadog-agent/pkg/logs/smartadaptivesampling
agentaixppc64
+3, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl
+github.com/DataDog/datadog-agent/pkg/logs/smartadaptivesampling
iot-agentlinuxamd64
+3, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl
+github.com/DataDog/datadog-agent/pkg/logs/smartadaptivesampling
iot-agentlinuxarm64
+3, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl
+github.com/DataDog/datadog-agent/pkg/logs/smartadaptivesampling
heroku-agentlinuxamd64
+3, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl
+github.com/DataDog/datadog-agent/pkg/logs/smartadaptivesampling
cluster-agentlinuxamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl
cluster-agentlinuxarm64
+2, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl
cluster-agent-cloudfoundrylinuxamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl
cluster-agent-cloudfoundrylinuxarm64
+2, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl
dogstatsdlinuxamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl
dogstatsdlinuxarm64
+2, -0
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/def
+github.com/DataDog/datadog-agent/comp/anomalydetection/config/impl

@CelianR CelianR changed the title [anomalydetection] Smart adaptive log sampling bridge module 1/3 [anomalydetection] Smart adaptive log sampling bridge module 2/4 Jul 9, 2026
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@CelianR

CelianR commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d24173b9ff

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

return nil, nil
}

sub, err := observerComp.SubscribeSeverityEventsReader(severityeventsdef.SeverityEventsConfiguration{})

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Honor the configured cooldown for severity profiles

When smart severity profiles are enabled, this bridge subscribes with an empty SeverityEventsConfiguration, so the logs_config.experimental_adaptive_sampling.smart_severity_profiles.cooldown setting is ignored and de-escalations are delivered immediately. In environments that rely on the default 5m cooldown, consumers of Current() will switch back to Low as soon as the scorer emits a low raw value, making the dynamic sampling profile much more aggressive/flappy than configured. Parse the cooldown config and pass it as CooldownSecs in this subscription.

Useful? React with 👍 / 👎.

@github-actions github-actions Bot added the long review PR is complex, plan time to review it label Jul 9, 2026
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

🎯 Code Coverage (details)
Patch Coverage: 43.75%
Overall Coverage: 51.34% (-0.01%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: d24173b | Docs | Datadog PR Page | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Files inventory check summary

File checks results against ancestor 08d84a79:

Results for datadog-agent_7.82.0~devel.git.653.d24173b9.pipeline.123703842-1_amd64.deb:

No change detected

@dd-octo-sts

dd-octo-sts Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Static quality checks

✅ Please find below the results from static quality gates
Comparison made with ancestor 08d84a7
📊 Static Quality Gates Dashboard
🔗 SQG Job

Successful checks

Info

Quality gate Change Size (prev → curr → max)
agent_deb_amd64 +31.61 KiB (0.00% increase, -0.33% of buffer) 748.730 → 748.761 → 758.200
agent_deb_amd64_fips +19.61 KiB (0.00% increase, -0.31% of buffer) 703.754 → 703.774 → 709.840
agent_heroku_amd64 +12.22 KiB (0.00% increase, -0.16% of buffer) 307.900 → 307.912 → 315.230
agent_msi +20.51 KiB (0.00% increase, -0.17% of buffer) 644.987 → 645.007 → 656.640
agent_rpm_amd64 +31.61 KiB (0.00% increase, -0.33% of buffer) 748.714 → 748.745 → 758.170
agent_rpm_amd64_fips +19.61 KiB (0.00% increase, -0.31% of buffer) 703.738 → 703.757 → 709.840
agent_rpm_arm64 +20.65 KiB (0.00% increase, -0.36% of buffer) 723.999 → 724.020 → 729.660
agent_rpm_arm64_fips +24.65 KiB (0.00% increase, -0.40% of buffer) 682.775 → 682.799 → 688.860
agent_suse_amd64 +31.61 KiB (0.00% increase, -0.33% of buffer) 748.714 → 748.745 → 758.170
agent_suse_amd64_fips +19.61 KiB (0.00% increase, -0.31% of buffer) 703.738 → 703.757 → 709.840
agent_suse_arm64 +20.65 KiB (0.00% increase, -0.36% of buffer) 723.999 → 724.020 → 729.660
agent_suse_arm64_fips +24.65 KiB (0.00% increase, -0.40% of buffer) 682.775 → 682.799 → 688.860
docker_agent_amd64 +41.33 KiB (0.00% increase, -0.64% of buffer) 807.510 → 807.551 → 813.790
docker_agent_arm64 +22.36 KiB (0.00% increase, -0.30% of buffer) 807.851 → 807.873 → 815.030
docker_agent_jmx_amd64 +41.32 KiB (0.00% increase, -0.66% of buffer) 998.408 → 998.448 → 1004.550
docker_agent_jmx_arm64 +22.33 KiB (0.00% increase, -0.30% of buffer) 987.401 → 987.423 → 994.710
docker_cluster_agent_amd64 +16.28 KiB (0.01% increase, -1.35% of buffer) 209.294 → 209.310 → 210.470
docker_dogstatsd_arm64 +64.03 KiB (0.17% increase, -6.08% of buffer) 37.242 → 37.305 → 38.270
docker_host_profiler_amd64 -6.69 KiB (0.00% reduction, +0.04% of buffer) 302.480 → 302.473 → 317.640
docker_host_profiler_arm64 -14.57 KiB (0.00% reduction, +0.10% of buffer) 314.036 → 314.022 → 328.900
dogstatsd_deb_amd64 +4.04 KiB (0.01% increase, -0.31% of buffer) 29.880 → 29.884 → 31.150
dogstatsd_deb_arm64 +4.04 KiB (0.01% increase, -0.24% of buffer) 27.920 → 27.924 → 29.530
dogstatsd_rpm_amd64 +4.04 KiB (0.01% increase, -0.31% of buffer) 29.880 → 29.884 → 31.150
dogstatsd_suse_amd64 +4.04 KiB (0.01% increase, -0.31% of buffer) 29.880 → 29.884 → 31.150
iot_agent_deb_amd64 +4.1 KiB (0.01% increase, -0.70% of buffer) 45.810 → 45.814 → 46.380
iot_agent_deb_arm64 +4.13 KiB (0.01% increase, -0.33% of buffer) 42.509 → 42.513 → 43.720
iot_agent_deb_armhf +4.08 KiB (0.01% increase, -0.60% of buffer) 43.297 → 43.301 → 43.960
iot_agent_rpm_amd64 +4.1 KiB (0.01% increase, -0.70% of buffer) 45.810 → 45.814 → 46.380
iot_agent_suse_amd64 +4.1 KiB (0.01% increase, -0.70% of buffer) 45.809 → 45.813 → 46.380
4 successful checks with minimal change (< 2 KiB)
Quality gate Current Size
docker_cluster_agent_arm64 222.389 MiB
docker_cws_instrumentation_amd64 7.447 MiB
docker_cws_instrumentation_arm64 6.877 MiB
docker_dogstatsd_amd64 39.145 MiB

@cit-pr-commenter-54b7da

Copy link
Copy Markdown

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: c81d60d5-abb5-4112-bbf2-821d04a10469

Baseline: 08d84a7
Comparison: d24173b
Diff

Optimization Goals: ❌ Regression(s) detected

perf experiment goal Δ mean % Δ mean % CI trials links
quality_gate_logs % cpu utilization +5.22 [+4.08, +6.36] 1 Logs bounds checks dashboard

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
quality_gate_logs % cpu utilization +5.22 [+4.08, +6.36] 1 Logs bounds checks dashboard
quality_gate_metrics_logs memory utilization +0.65 [+0.40, +0.90] 1 Logs bounds checks dashboard
quality_gate_idle_all_features memory utilization -0.12 [-0.15, -0.08] 1 Logs bounds checks dashboard
quality_gate_security_no_fs_load memory utilization -0.14 [-0.24, -0.04] 1 Logs bounds checks dashboard
quality_gate_security_idle memory utilization -0.17 [-0.23, -0.10] 1 Logs bounds checks dashboard
quality_gate_security_mean_fs_load memory utilization -0.20 [-0.24, -0.17] 1 Logs bounds checks dashboard
quality_gate_idle memory utilization -0.60 [-0.65, -0.55] 1 Logs bounds checks dashboard

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed observed_value links
quality_gate_idle intake_connections 10/10 3 ≤ 4 bounds checks dashboard
quality_gate_idle memory_usage 10/10 145.41MiB ≤ 154MiB bounds checks dashboard
quality_gate_idle total_bytes_received 10/10 579.04KiB ≤ 819.20KiB bounds checks dashboard
quality_gate_idle_all_features intake_connections 10/10 3 ≤ 4 bounds checks dashboard
quality_gate_idle_all_features memory_usage 10/10 484.34MiB ≤ 495MiB bounds checks dashboard
quality_gate_idle_all_features total_bytes_received 10/10 0.89MiB ≤ 1.25MiB bounds checks dashboard
quality_gate_logs intake_connections 10/10 4 ≤ 6 bounds checks dashboard
quality_gate_logs memory_usage 10/10 184.83MiB ≤ 195MiB bounds checks dashboard
quality_gate_logs missed_bytes 10/10 0B = 0B bounds checks dashboard
quality_gate_logs total_bytes_received 10/10 264.61MiB ≤ 292MiB bounds checks dashboard
quality_gate_metrics_logs cpu_usage 10/10 332.65 ≤ 2000 bounds checks dashboard
quality_gate_metrics_logs intake_connections 10/10 3 ≤ 6 bounds checks dashboard
quality_gate_metrics_logs memory_usage 10/10 394.82MiB ≤ 430MiB bounds checks dashboard
quality_gate_metrics_logs missed_bytes 10/10 0B = 0B bounds checks dashboard
quality_gate_metrics_logs total_bytes_received 10/10 0.86GiB ≤ 1.04GiB bounds checks dashboard
quality_gate_security_idle cpu_usage 10/10 28.78 ≤ 40 bounds checks dashboard
quality_gate_security_idle memory_usage 10/10 295.12MiB ≤ 330MiB bounds checks dashboard
quality_gate_security_mean_fs_load cpu_usage 10/10 72.00 ≤ 80 bounds checks dashboard
quality_gate_security_mean_fs_load memory_usage 10/10 272.94MiB ≤ 310MiB bounds checks dashboard
quality_gate_security_no_fs_load cpu_usage 10/10 28.84 ≤ 40 bounds checks dashboard
quality_gate_security_no_fs_load memory_usage 10/10 280.88MiB ≤ 320MiB bounds checks dashboard

Explanation

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

Replicate Execution Details

We run multiple replicates for each experiment/variant. However, we allow replicates to be automatically retried if there are any failures, up to 8 times, at which point the replicate is marked dead and we are unable to run analysis for the entire experiment. We call each of these attempts at running replicates a replicate execution. This section lists all replicate executions that failed due to the target crashing or being oom killed.

Note: In the below tables we bucket failures by experiment, variant, and failure type. For each of these buckets we list out the replicate indexes that failed with an annotation signifying how many times said replicate failed with the given failure mode. In the below example the baseline variant of the experiment named experiment_with_failures had two replicates that failed by oom kills. Replicate 0, which failed 8 executions, and replicate 1 which failed 6 executions, all with the same failure mode.

Experiment Variant Replicates Failure Logs Debug Dashboard
experiment_with_failures baseline 0 (x8) 1 (x6) Oom killed Debug Dashboard

The debug dashboard links will take you to a debugging dashboard specifically designed to investigate replicate execution failures.

❌ Retried Profiling Replicate Execution Failures (ddprof)

Note: Profiling replicas may still be executing. See the debug dashboard for up to date status.

Experiment Variant Replicates Failure Debug Dashboard
quality_gate_idle baseline 10 Oom killed Debug Dashboard
quality_gate_idle_all_features baseline 10 Oom killed Debug Dashboard
quality_gate_idle_all_features comparison 10 Oom killed Debug Dashboard
quality_gate_logs baseline 10 Oom killed Debug Dashboard
quality_gate_logs comparison 10 Oom killed Debug Dashboard
quality_gate_metrics_logs baseline 10 Oom killed Debug Dashboard
quality_gate_metrics_logs comparison 10 Oom killed Debug Dashboard
quality_gate_security_idle baseline 10 Oom killed Debug Dashboard
quality_gate_security_idle comparison 10 Oom killed Debug Dashboard
quality_gate_security_no_fs_load baseline 10 Oom killed Debug Dashboard
quality_gate_security_no_fs_load comparison 10 Oom killed Debug Dashboard

CI Pass/Fail Decision

Passed. All Quality Gates passed.

  • quality_gate_metrics_logs, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_security_mean_fs_load, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_mean_fs_load, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_no_fs_load, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_no_fs_load, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_idle, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.

@CelianR
CelianR force-pushed the celian/severityevents-config branch from fc5a389 to 7e37b75 Compare July 9, 2026 13:50
@CelianR

CelianR commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

#53488

@CelianR CelianR closed this Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog No changelog entry needed long review PR is complex, plan time to review it qa/done QA done before merge and regressions are covered by tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant