Skip to content

Conversation

@MichelLosier
Copy link
Contributor

@MichelLosier MichelLosier commented Nov 3, 2025

Proposed commit message

Adds a new health_status field to the status change logs data stream that uses rollup health statuses as seen in the Fleet UI and agent status metrics: https://www.elastic.co/docs/reference/fleet/monitor-elastic-agent#view-agent-status

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • [ ]

How to test this PR locally

Test the pipeline:

Run ES

elastic-package stack up -d --services=elasticsearch 

From the elastic_agent package dir run:

elastic-package test pipeline

Try out the package:

From the elastic_package dir:

elastic-package build
  • Upload the zip as an integration in kibana
  • Start and stop an agent
  • Review the status_change logs
  • Review the new alert rules in Observability > Alerts > Rule management

Related issues

Other notes

An alternative approach to this task would've been to update the data stream here, and also update the background task in Kibana that provides the logs for this data stream. Using a pipeline processor instead allows us to avoid version constraints on the package to a kibana version for what is a derived field

Screenshots

@andrewkroh andrewkroh added the Integration:elastic_agent Elastic Agent label Nov 3, 2025
@MichelLosier MichelLosier added the enhancement New feature or request label Nov 3, 2025
@MichelLosier MichelLosier requested a review from a team November 3, 2025 22:32
@MichelLosier MichelLosier marked this pull request as ready for review November 3, 2025 22:38
@MichelLosier MichelLosier requested a review from a team as a code owner November 3, 2025 22:38
@elastic-vault-github-plugin-prod

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

Copy link
Member

@nchaulet nchaulet left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@andrewkroh andrewkroh added the Team:Elastic-Agent Platform - Ingest - Agent [elastic/elastic-agent] label Nov 4, 2025
@elasticmachine
Copy link

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

@MichelLosier MichelLosier force-pushed the add-ea-health-status-to-status-change-ds branch from a0c2937 to 067ae45 Compare November 4, 2025 16:48
@elasticmachine
Copy link

💚 Build Succeeded

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Integration:elastic_agent Elastic Agent Team:Elastic-Agent Platform - Ingest - Agent [elastic/elastic-agent]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants