Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Observability Onboarding] Split Agent config into multiple files #191241

Merged
merged 6 commits into from
Sep 3, 2024

Conversation

thomheymann
Copy link
Contributor

@thomheymann thomheymann commented Aug 24, 2024

Resolves #191917

Summary

Splits up the Agent config generated during auto-detect based onboarding into multiple files.

This makes it easier for users to make changes following the initial onboarding.

The backup feature has also been updated to include files inside inputs.d directory.

Example

Before this change the auto-detect script would write all settings to elastic-agent.yml file.

After this change the script writes one separate config file for each integrations that was detected, for example:

  1. elastic-agent.yml - Contains global settings
  2. inputs.d/system.yml - Contains inputs config for System integration
  3. inputs.d/docker.yml - Contains inputs config for Docker integration

Screenshot

Screenshot 2024-08-23 at 16 49 34

@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@thomheymann thomheymann marked this pull request as ready for review September 2, 2024 14:13
@thomheymann thomheymann requested review from a team as code owners September 2, 2024 14:13
@@ -1229,7 +1229,7 @@
"suricata-sid-db": "^1.0.2",
"swr": "^2.2.5",
"symbol-observable": "^1.2.0",
"tar": "^6.2.1",
"tar": "^7.4.3",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to update this package to the latest version since v6 did not export the required lower level functions.

@@ -1609,7 +1609,6 @@
"@types/styled-components": "^5.1.0",
"@types/supertest": "^6.0.2",
"@types/tapable": "^1.0.6",
"@types/tar": "^6.1.11",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

v7 ships with type definitions so was able to remove @types/tar package.

@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:Fleet Team label for Observability Data Collection Fleet team labels Sep 2, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@thomheymann thomheymann added the release_note:skip Skip the PR/issue when compiling release notes label Sep 2, 2024
Copy link
Contributor

@mykolaharmash mykolaharmash left a comment

Choose a reason for hiding this comment

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

Tested locally, everything works as expected ✨

@thomheymann
Copy link
Contributor Author

/ci

1 similar comment
@thomheymann
Copy link
Contributor Author

/ci

Copy link
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

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

LGTM

@kibana-ci
Copy link
Collaborator

kibana-ci commented Sep 3, 2024

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: b9f15e3
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-191241-b9f15e391ba4

Failed CI Steps

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@thomheymann thomheymann merged commit d14432e into elastic:main Sep 3, 2024
42 checks passed
@kibanamachine kibanamachine added v8.16.0 backport:skip This commit does not require backporting labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Observability Onboarding] Split Agent config into multiple files
8 participants