Repository navigation
[9.6] (backport #16902) Restore Heartbeat monitor state in OTel mode - #17568
Conversation
Restore Heartbeat monitor state in OTel mode Configure output-scoped Elasticsearch authentication for Heartbeat receivers and delegate transport settings to beatsauth. Assisted-by: Cursor, Model: GPT-5.6 Terra & Sol (High) Assisted-by: Cursor, Model: Gemini 3.8 Flash (High) (cherry picked from commit fe0cdc3) # Conflicts: # internal/pkg/otel/translate/otelconfig_test.go
|
Cherry-pick of fe0cdc3 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
|
Dependency review finished without posting an analysis comment. If you expected a review, push a new commit to this pull request (or close and reopen it) to try again. Workflow run: https://github.com/elastic/elastic-agent/actions/runs/40430235127 |
TL;DRBuildkite failed in Remediation
Investigation detailsRoot CauseThis is a code bug introduced in the backport commit. The commit patch for Evidence
Verification
Follow-up
What is this? | From workflow: Observability Agentic Workflow — Status Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
Assisted-by: gpt-5.6-terra-high
💚 Build Succeeded
History
cc @belimawr |
What does this PR do?
Why is it important?
Fixes #16284
Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration files./changelog/fragmentsusing the changelog tool## Disruptive User ImpactHow to test this PR locally
Run the tests
Manual test
Runtime precondition
This Heartbeat defaults to the process runtime. Force OTel runtime via
Fleet policy override:
In Fleet UI go to: -> Settings -> Advanced internal YAML settings
and add the following snippet:
Kibana and Elastic Agent setup
Example URLs assume you're using Elastic-Package
python -m http.server.Reproduction
Run the following query in Dev Tools, replacing
<monitor-id>by the monitor ID you copied.Record the result:
state.checks: ever-increasing number of checks.state.id: the persisted Heartbeat state ID.state.started_at: the time of the first check.Restart Elastic Agent, for example on Linux:
sudo systemctl restart elastic-agent.Run the query again.
state.checksmust have increased;state.idandstate.started_atmust be unchanged.Related issues
Questions to ask yourself
This is an automatic backport of pull request #16902 done by [Mergify](https://mergify.com).