Skip to content

Add autoops chart#9363

Merged
pierrehilbert merged 32 commits intoelastic:mainfrom
idanl21:add-autoops-chart
Nov 25, 2025
Merged

Add autoops chart#9363
pierrehilbert merged 32 commits intoelastic:mainfrom
idanl21:add-autoops-chart

Conversation

@idanl21
Copy link
Copy Markdown
Contributor

@idanl21 idanl21 commented Aug 14, 2025

This PR is adding the to elastic-agent the option to support autoOps Otel agent, it adds:

  • option to enable the AutoOps configs
  • create an autoOps secret
  • mount the AutoOps secret to env variables inside of the elastic-agent deployment\

command to install as an example -

Pull the chart -

helm repo add elastic https://helm.elastic.co/

Install the agent -

helm install elastic-agent ./deploy/helm/elastic-agent \
  --set autoOps.enabled=true \
  --set kube-state-metrics.enabled=false \
  --set kubernetes.enabled=false \
  --set autoOps.autoops_token="XXXXXX" \
  --set autoOps.autoops_es_url="https://XX-XX.es.us-central1.gcp.cloud.es.io" \
  --set autoOps.temp_resource_id="6XXXXXXX" \
  --set autoOps.otel_url="https://otel-collector.auto-ops.us-east-2.aws.cloud.elastic.co:4318" \
  --set autoOps.cloud_connected_mode_api_key="XXXXXX" \
  --set autoOps.cloud_connected_mode_api_url="XXXXXX" \
  --set autoOps.es_api_key="XXXXXXX:XXXXX" \

@idanl21 idanl21 requested a review from a team as a code owner August 14, 2025 09:39
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Aug 14, 2025

This pull request does not have a backport label. Could you fix it @idanl21? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-./d./d is the label that automatically backports to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@pkoutsovasilis pkoutsovasilis self-requested a review August 14, 2025 17:32
Copy link
Copy Markdown
Contributor

@pkoutsovasilis pkoutsovasilis left a comment

Choose a reason for hiding this comment

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

This is shaping really nice, I left some comments

Comment thread deploy/helm/elastic-agent/values.schema.json Outdated
@pkoutsovasilis pkoutsovasilis added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team skip-changelog backport-9.1 Automated backport to the 9.1 branch labels Aug 14, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@idanl21 idanl21 requested a review from a team as a code owner August 17, 2025 08:11
@pkoutsovasilis pkoutsovasilis self-requested a review August 18, 2025 07:11
Comment thread deploy/helm/elastic-agent/values.yaml Outdated
Comment thread deploy/helm/elastic-agent/examples/autoops-agent/README.md Outdated
@idanl21 idanl21 requested review from pickypg and swiatekm November 11, 2025 11:49
Copy link
Copy Markdown
Member

@ebeahan ebeahan left a comment

Choose a reason for hiding this comment

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

Other than the yaml added to changelog/fragments. All the other release note files need removed.

You only need to create the fragment for your PR; rendering and creating the changelog is handled by maintainers for a release.

Comment thread changelog/fragments/1762856188-added-opex-to-elastic-agent-helm-chart.yaml Outdated
Comment thread changelog/fragments/1762856188-added-opex-to-elastic-agent-helm-chart.yaml Outdated
Comment thread changelog/0.1.0.yaml Outdated
Comment thread docs/release-notes/_snippets/0.1.0.asciidoc Outdated
idanl21 and others added 3 commits November 12, 2025 11:13
@idanl21
Copy link
Copy Markdown
Contributor Author

idanl21 commented Nov 12, 2025

@ebeahan
Thanks for the review Eric!
Addressed all your comments. Please let me know if there is anything else missing.

@idanl21 idanl21 requested a review from ebeahan November 12, 2025 09:30
ebeahan

This comment was marked as outdated.

@ebeahan ebeahan dismissed ycombinator’s stale review November 12, 2025 22:43

Author addressed changelog changes #9363 (comment)

Copy link
Copy Markdown
Member

@ebeahan ebeahan left a comment

Choose a reason for hiding this comment

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

@idanl21 we still need to clean up all the unnecessary *.md files the changelog tool added.

@pickypg can you also review again from the AutoOps side?

@idanl21
Copy link
Copy Markdown
Contributor Author

idanl21 commented Nov 13, 2025

@ebeahan
do you mean to the files that sits under docs/release-notes/_snippets/* ?

@ebeahan
Copy link
Copy Markdown
Member

ebeahan commented Nov 13, 2025

do you mean to the files that sits under docs/release-notes/_snippets/* ?

Please remove:

  • docs/release-notes/_snippets
  • changelog/0.1.0.yaml

@idanl21 idanl21 requested a review from ebeahan November 16, 2025 11:09
@idanl21
Copy link
Copy Markdown
Contributor Author

idanl21 commented Nov 16, 2025

@ebeahan
Removed the unnecessary files

@idanl21
Copy link
Copy Markdown
Contributor Author

idanl21 commented Nov 17, 2025

@ebeahan @swiatekm

Any idea why the pipeline failed here?

@pierrehilbert
Copy link
Copy Markdown
Contributor

Hey @idanl21
Sorry for that, this failure is unrelated to your change and currently investigated by the team.

@elasticmachine
Copy link
Copy Markdown
Contributor

@ycombinator ycombinator enabled auto-merge (squash) November 24, 2025 15:09
Copy link
Copy Markdown
Member

@theletterf theletterf left a comment

Choose a reason for hiding this comment

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

Approving to unblock.

@pierrehilbert pierrehilbert merged commit 6d93b13 into elastic:main Nov 25, 2025
21 checks passed
mergify Bot pushed a commit that referenced this pull request Nov 25, 2025
* init

* added all env vriabels

* added es_pass and username as an option and added autoops to values.schema.json

* Update deploy/helm/elastic-agent/values.schema.json

Co-authored-by: Panos Koutsovasilis <koutsobill@hotmail.com>

* fix scheme

* run mage helm:updateAgentVersion helm:renderExamples

* adde to CODEOWNERS

* add contidions to shecma

* change schema

* fix schema

* add exmaples to values file

* add exmaples to values file

* added example

* run mage runderExamples

* run mage runderExamples

* run mage runderExamples

* run mage runderExamples

* fix values naming

* Update deploy/helm/elastic-agent/templates/integrations/_auto_ops/_auto_ops.tpl

Co-authored-by: Panos Koutsovasilis <koutsobill@hotmail.com>

* Update deploy/helm/elastic-agent/templates/integrations/_auto_ops/_auto_ops.tpl

Co-authored-by: Panos Koutsovasilis <koutsobill@hotmail.com>

* Update deploy/helm/elastic-agent/templates/integrations/_auto_ops/secret.yaml

Co-authored-by: Panos Koutsovasilis <koutsobill@hotmail.com>

* fix: update manifest.yaml of autoops-agent

* Clear default values for autoops

* added changelog

* Update changelog/fragments/1762856188-added-opex-to-elastic-agent-helm-chart.yaml

Co-authored-by: Eric Beahan <ebeahan@gmail.com>

* Update changelog/fragments/1762856188-added-opex-to-elastic-agent-helm-chart.yaml

Co-authored-by: Eric Beahan <ebeahan@gmail.com>

* Delete docs/release-notes/_snippets/0.1.0.asciidoc

* Delete changelog/0.1.0.yaml

* remove unnecessary docs

---------

Co-authored-by: Panos Koutsovasilis <panos.koutsovasilis@elastic.co>
Co-authored-by: Panos Koutsovasilis <koutsobill@hotmail.com>
Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com>
Co-authored-by: Eric Beahan <ebeahan@gmail.com>
Co-authored-by: Eric Beahan <eric.beahan@elastic.co>
(cherry picked from commit 6d93b13)

# Conflicts:
#	.github/CODEOWNERS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-9.1 Automated backport to the 9.1 branch skip-changelog Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants