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

Migrate some Metricbeat modules to GCP package #490

Closed
6 of 11 tasks
masci opened this issue Dec 24, 2020 · 20 comments · Fixed by #2707
Closed
6 of 11 tasks

Migrate some Metricbeat modules to GCP package #490

masci opened this issue Dec 24, 2020 · 20 comments · Fixed by #2707
Assignees
Labels
fleet-migration Used to track the migration to the new experience Integration:gcp Google Cloud Platform release-pending Team:Integrations Label for the Integrations team

Comments

@masci
Copy link

masci commented Dec 24, 2020

Goal: migrate all currently implemented Metricbeat gcp module Metricsets to Data Streams within gcp integration package and add system tests.

TODO:

🛑 Blockers

🏗 Implementation work

❓ Open questions

  • Should the new data streams be added to gcp package? As of now it contains only security related log collection.

🚨 Risks

@masci masci added Team:Integrations Label for the Integrations team release-pending Integration:gcp Google Cloud Platform labels Dec 24, 2020
@elasticmachine
Copy link

Pinging @elastic/integrations (Team:Integrations)

@masci
Copy link
Author

masci commented Dec 24, 2020

Package creation: #459

@masci masci added the fleet-migration Used to track the migration to the new experience label Feb 2, 2021
@masci masci changed the title Create GCP package Migrate Metricbeat modules to GCP package Sep 15, 2021
@legoguy1000
Copy link
Contributor

I have some free time, I can look at getting this started.

legoguy1000 added a commit to legoguy1000/integrations that referenced this issue Oct 29, 2021
@endorama
Copy link
Member

endorama commented Nov 3, 2021

@legoguy1000 thank you! I will keep an eye on it and review it.

@endorama
Copy link
Member

endorama commented Mar 7, 2022

While adding tests we stumbled upon an issue with Elastic Agent parsing it's configuration that is affecting how we perform tests: elastic/elastic-agent#178

@endorama
Copy link
Member

endorama commented Mar 8, 2022

The issue has been solved, but we need to wait for release 8.1.0 to be out to merge it.

@endorama
Copy link
Member

GCP test package is waiting on the final review but we were able to overcome the issues of the past days. I expect it to be merged beginning of next week

@endorama
Copy link
Member

GCP test package merged today! This unblocks working on multiple data streams (probably all but billing, for which elastic/elastic-package#662 is required)

@legoguy1000
Copy link
Contributor

legoguy1000 commented Mar 15, 2022

@endorama we good to keep merging the individual Gcp metric sets?

@endorama
Copy link
Member

No, unfortunately tests are still not working in this repo. We are migrating the configuration but facing current system tests for logs failing in #2704

@endorama
Copy link
Member

While integrating tests in #2704 we discovered errors in the CI pipeline. As the changes are unrelated to #2704, I'm pausing the work on that one to fix the CI in #2707

@endorama
Copy link
Member

endorama commented Apr 4, 2022

Work has been done in a separate branch to pinpoint the issue, and we have been able to find and solve the issue.

During testing of #2707 it has been highlighted that the changes introduce a possible breaking change in the configuration that we should address.
I performed some tests and I can confirm there is a breaking change that we have to address. Further details in a separate comment.

@endorama
Copy link
Member

In #2987 we decided to move forward by creating a separate integration package called gcp_metrics. I'll rework implementation PR to use the new package.

@legoguy1000
Copy link
Contributor

@endorama let me know when the new package is in the gcp_metrics branch and I can update all my other branches with the remaining data streams and we can finish this.

@endorama
Copy link
Member

The decision of moving forward has been reverted, in favour of a different approach: an issue has been opened on Kibana (elastic/kibana#131251), that has been closed yesterday. This issue solves the upgrade issue I found when upgrading GCP policy with a breaking change.
The next step is to ensure the upgrade works as expected and then continue migrating the metricsets as previously decided.

@endorama
Copy link
Member

#2707 is ready for review!

@endorama
Copy link
Member

#2707 has been updated to include latest changes and marked ready again, after positive decision in moving forward with the current implementation.

@endorama endorama changed the title Migrate Metricbeat modules to GCP package Migrate some Metricbeat modules to GCP package Jul 14, 2022
@endorama
Copy link
Member

@legoguy1000 I'm sorry that all linked PRs have been closed! I'm not sure why it happened but was not intentional. We are testing the 2.0.0 package and we are going to work on other metricsets soon after!

@legoguy1000
Copy link
Contributor

@legoguy1000 I'm sorry that all linked PRs have been closed! I'm not sure why it happened but was not intentional. We are testing the 2.0.0 package and we are going to work on other metricsets soon after!

No problem. When the branch was merged and deleted, any PR targeting it gets closed. I had to rebase it off of main anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fleet-migration Used to track the migration to the new experience Integration:gcp Google Cloud Platform release-pending Team:Integrations Label for the Integrations team
Projects
None yet
4 participants