Skip to content

[observer] Disable metrics eks option#49910

Merged
CelianR merged 5 commits intoq-branch-observerfrom
celian/disable-metrics-option-eks
Apr 27, 2026
Merged

[observer] Disable metrics eks option#49910
CelianR merged 5 commits intoq-branch-observerfrom
celian/disable-metrics-option-eks

Conversation

@CelianR
Copy link
Copy Markdown
Contributor

@CelianR CelianR commented Apr 27, 2026

What does this PR do?

This adds an option to disable metrics on eks task.
It also cleans the latest code for that.

Motivation

Describe how you validated your changes

Additional Notes

CelianR and others added 4 commits April 27, 2026 09:15
- Add compile-time interface guard for metricDropHandle
- Warn when ingestMetricsEnabled=false so operators can diagnose silent metric drops
- Fix t.Cleanup + sync.Once for safe goroutine shutdown in test (prevents leak on t.Fatal)
- Add logReceived/profileReceived counters to countingHandle; assert forwarding in TestMetricDropHandle
- Rename TestMetricDropHandleUnit → TestMetricDropHandle (drop redundant Unit suffix)
- Rename dropHandle local var (was dropHandle, shadowing the type name)
- Trim verbose multi-paragraph test doc comment to a single sentence
- Fix run-on sentence in config.go observer.ingest_metrics.enabled comment

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds --disable-metrics-ingestion flag to the gensim submit task and
threads it through the Pulumi run, agent-values template, and tests so
log-only anomaly detection can be exercised without external metrics.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When recording and ingest_metrics.enabled=false are both active,
recordingHandle calls ObserveMetricAndReportDrop on the wrapping
metricDropHandle. Returning false caused the recorder to write
Dropped=false, so testbench replays included metrics the live observer
never ingested. Return true so the recorder correctly marks them dropped.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CelianR CelianR self-assigned this Apr 27, 2026
@CelianR CelianR marked this pull request as ready for review April 27, 2026 09:36
@CelianR CelianR requested review from a team as code owners April 27, 2026 09:36
@CelianR CelianR merged commit 1c23df0 into q-branch-observer Apr 27, 2026
9 checks passed
@CelianR CelianR deleted the celian/disable-metrics-option-eks branch April 27, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant