-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[metricbeat] [gcp] remove compute metadata cache #33655
[metricbeat] [gcp] remove compute metadata cache #33655
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
/test |
efb1722
to
114a009
Compare
@gpop63 I like the direction this is headed, can we move forward with it? |
"github.com/elastic/beats/v7/x-pack/metricbeat/module/gcp" | ||
"github.com/elastic/elastic-agent-libs/logp" | ||
) | ||
|
||
/* | ||
const ( |
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.
can we remove these const since we are not using it anymore? :)
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.
Logic is correct, can you please clean up all the commented code?
This pull request is now in conflicts. Could you fix it? 🙏
|
projectID: "projectID", | ||
instanceCache: common.NewCache(30*time.Second, 13), | ||
projectID: "projectID", | ||
// instanceCache: common.NewCache(30*time.Second, 13), |
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.
Can we get rid of this too?
region string | ||
regions []string | ||
opt []option.ClientOption | ||
// instanceCache *common.Cache |
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.
Can we get rid of this too?
This pull request is now in conflicts. Could you fix it? 🙏
|
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
* remove compute metadata cache * add logs and change map key type * add import aliases * add changelog entry * cleanup comments * remove comments (cherry picked from commit 74edd05) # Conflicts: # x-pack/metricbeat/module/gcp/metrics/compute/metadata.go
* remove compute metadata cache * add logs and change map key type * add import aliases * add changelog entry * cleanup comments * remove comments (cherry picked from commit 74edd05) # Conflicts: # x-pack/metricbeat/module/gcp/metrics/compute/metadata.go
…che (#33948) * [metricbeat] [gcp] remove compute metadata cache (#33655) * remove compute metadata cache * add logs and change map key type * add import aliases * add changelog entry * cleanup comments * remove comments (cherry picked from commit 74edd05) # Conflicts: # x-pack/metricbeat/module/gcp/metrics/compute/metadata.go * fix CHANGELOG * fix merge conflicts * fix linter * remove unused package --------- Co-authored-by: Gabriel Pop <94497545+gpop63@users.noreply.github.com> Co-authored-by: Edoardo Tenani <edoardo.tenani@elastic.co> Co-authored-by: Edoardo Tenani <526307+endorama@users.noreply.github.com>
* remove compute metadata cache * add logs and change map key type * add import aliases * add changelog entry * cleanup comments * remove comments
What does this PR do?
Removes compute metadata cache.
Why is it important?
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs