-
Notifications
You must be signed in to change notification settings - Fork 479
[beat] Create beat package #4708
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
Conversation
🌐 Coverage report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. I've quickly looked at it, but I haven't run any tests yet. First, I've got a question on the package name: beats
or beat
?
Looks like the system tests fail because the stack started by the CI is older than the minimum kibana version of the package (>= 8.7.0). I thought the constraint was ignored when testing, I'll take a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏼 Tested and works well for both variants
Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
Some failures now are related to the upgrade of the format version, look here for troubleshooting them: https://github.com/elastic/elastic-package/blob/main/docs/howto/update_major_package_spec.md#troubleshooting-upgrades-from-package-spec-v1-to-v2 |
System tests are complaining about the dataset format when we overwrite it in the manifest.yml, we may not check that field when doing the comparison. edit: it should probably be picked up here
|
Yeah, it looks like something is missing there. I will take a look. |
Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
@klacabane elastic-package 0.70.1 should fix the issue with dataset checks, we have just updated to this version the integrations repository, please try to update this branch. |
/test |
Package beat - 0.0.1 containing this change is available at https://epr.elastic.co/search?package=beat |
## Summary Closes #146686 Update apm and beats queries to read from the Beat package data streams created in elastic/integrations#4708. Also updates health API to fetch from the data streams. API tests follow up in #147755 ### Testing That's a fairly heavy workflow. I'm investigating ways to make that easier - build `beat` package with `elastic-package build`. The package is not published yet so you'll need to pull elastic/integrations#4708 locally - start a stack `elastic-package stack up -v -d --version 8.7.0-SNAPSHOT`. Make sure you do this within `integrations` repo so it picks up the previously built package - start a beat service with `elastic-package service up -v --variant metricbeat_8.7.0` - install both elasticsearch and beat packages from the kibana started by the stack command (`https://localhost:5601`). Nothing shows up in SM if we don't have elasticsearch data. - both packages are prerelease versions and we need to explicitly tell Integrations plugin to show them up[1] - elasticsearch hosts is `https://elasticsearch:9200` and beat _should be_ `http://elastic-package-service_beat_1:5066` but it may differ depending on your docker version - start a Kibana with this branch connected to the elasticsearch instance from the `stack up` command. [see howto](https://github.com/elastic/observability-dev/blob/main/docs/infra-obs-ui/stack-monitoring_integration-packages.md#connecting-a-local-kibana) - navigate to Stack Monitoring and verify the metricbeat is properly monitored - start an apm server with `elastic-package service up -v --variant apm_8.7.0` - navigate to Stack Monitoring and verify apm-server is properly monitored [1] <img width="853" alt="Screenshot 2022-12-01 at 00 20 20" src="https://user-images.githubusercontent.com/5239883/204929352-c7656679-f88c-4013-b1f8-cf7c67d4c830.png"> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
Closes elastic/kibana#144995
Creates a Beat package that supports monitoring of standalone beats and apm-server from Agent.
Testing