-
Notifications
You must be signed in to change notification settings - Fork 456
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
[GCP] Configuration breaking changes due to metrics data streams addition #2987
Comments
I'm +1 with point 1., we have the precedent of azure metrics showing this is the best course of action, to the point that I wouldn't even do 4. |
+1 on Massi's comment. I think having |
While my personal preference would be a single package like AWS we cannot afford a breaking change since we have things like GCP dataflow templates based ingestion as well. Did we look at all the way to see if we can keep it in a single package (gcp) but not introduce a breaking change? If there's no way to add metrics to the existing gcp package then I think we will need to go with the separate gcp_metrics package as proposed and +1 by Massi and Kaiyan. |
@joshdover Could you take a look at this from a Fleet perspective on what we could do here? |
I have the same opinion as Ravi. We need to avoid a breaking change and it would be nice to keep it in a single package. I think this growth path for existing packages will be common. Packages may need to create more policy_templates or shift variables from global scope to policy_template scope and it would be good if upgrades continue to work. Maybe we should talk through some common update "use cases" that we want to handle and see what it would take to handle them in Fleet. |
We decided to put taking a decision about this on hold, while I'm investigating with Fleet team the timeline for a fix to the mentioned Kibana issue. |
Based on the discuss we had in Cloud Integrations weekly meeting we are holding on this decision until the Fleet UI team provides an estimation for the fix detailed in the linked Kibana issue. |
Reporting here the answer from Fleet UI team:
|
After today Cloud Integrations weekly meeting we reached this conclusion: we are going to move forward with a separate package. This is due to 2 main elements:
This issue will not be closed as the breaking change is still an issue that need to be addressed in the future when merging |
The related Kibana issue has been closed, which means is possible to test the upgrade path for the integration with breaking change and expect the issue found to be solved. |
This issue is solved in 8.x release track, still present in 7.17 as elastic/kibana#132068 has not yet been backported. Will close once this is solved also for 7.17 |
Hi! We just realized that we haven't looked into this issue in a while. We're sorry! We're labeling this issue as |
This issue was noticed while working on #490; it's goal is to migrate
gcp
beats metricsets togcp
package data streams, allowing the Agent to ingest data related to GCP metrics.Context
gcp
package contains onlylogs
related data streams.Issue
Given the missing support for Policy Template level variables in Fleet UI, some of the configuration variables must be moved: some configuration are shared by all data streams (logs and metrics one), like credentials and GCP project ID, so it make sense to move them to Package level variables and some are only pertaining to logs data streams, so it make sense to move them within the data streams themselves.
This introduce a configuration breaking change. (Thanks @andrewkroh for raising this concern)
Testing
In order to verify the breaking change and test the upgrade path, I bumped the
gcp
package with changes in #2707 to the next major (these changes are not yet pushed to #2707).These were the steps:
8.2.0-SNAPSHOT
$ elastic-package stack up --version "8.2.0-SNAPSHOT" -d -v
gcp
package (1.5.0
at this moment) through Integrations pagea. Set
Project ID
andCredentials JSON
to non-default valuesb. Create a new agent policy with the integration
c. Configuration screenshot
gcp 2.0.2
package from https://github.com/endorama/integrations/tree/gcp-metrics-II$ cd packages/gcp && elastic-package build
$ elastic-package stack up --services package-registry -d
a. click on the upgrade button in the
gcp
integration "Settings" pageb. from
gcp
integration "Integration policies" page click on upgrade button for the defined policyc. The upgrade steps identifies some conflicting fields.
Note: in this screen
Project ID
,Credentials file
andCredentials JSON
fields are missing Full page screenshotd. Add
foobar
to GCP Billing Metrics Dataset ID field and click "Upgrade integration`Conclusions
Suggested course of action
Considering that:
gcp
packagebeta
my suggested course of action would be:
gcp
package and create a newgcp_metrics
package with metrics related data stream.gcp_metrics
package.gcp
andgcp_metrics
at a later date./cc @andrewkroh @ravikesarwani @masci @elastic/obs-cloud-monitoring
The text was updated successfully, but these errors were encountered: