[Metricbeat] Fix getting compute instance metadata with partial zone/region config#18757
Merged
kaiyan-sheng merged 8 commits intoelastic:masterfrom May 28, 2020
kaiyan-sheng:metadata_compute
Merged
[Metricbeat] Fix getting compute instance metadata with partial zone/region config#18757kaiyan-sheng merged 8 commits intoelastic:masterfrom kaiyan-sheng:metadata_compute
kaiyan-sheng merged 8 commits intoelastic:masterfrom
kaiyan-sheng:metadata_compute
Conversation
Contributor
|
Pinging @elastic/integrations-platforms (Team:Platforms) |
Contributor
💚 Build SucceededExpand to view the summary
Build stats
Test stats 🧪
Steps errorsExpand to view the steps failures
|
Contributor
Author
|
More unit tests need to be added with mocking the gcp APIs in a separate PR. |
added 3 commits
May 28, 2020 08:02
sayden
approved these changes
May 28, 2020
Contributor
sayden
left a comment
There was a problem hiding this comment.
Looks fine! I left a comment
x-pack/metricbeat/module/googlecloud/stackdriver/compute/metadata.go
Outdated
Show resolved
Hide resolved
6 tasks
6 tasks
v1v
added a commit
to v1v/beats
that referenced
this pull request
Jun 2, 2020
…-stage-level * upstream/master: (30 commits) Add a GRPC listener service for Agent (elastic#18827) Disable host.* fields by default for iptables module (elastic#18756) [WIP] Clarify capabilities of the Filebeat auditd module (elastic#17068) fix: rename file and remove extra separator (elastic#18881) ci: enable JJBB (elastic#18812) Disable host.* fields by default for Checkpoint module (elastic#18754) Disable host.* fields by default for Cisco module (elastic#18753) Update latest.yml testing env to 7.7.0 (elastic#18535) Upgrade k8s.io/client-go and k8s keystore tests (elastic#18817) Add missing Jenkins stages for Auditbeat (elastic#18835) [Elastic Log Driver] Create a config shim between libbeat and the user (elastic#18605) Use indexers and matchers in config when defaults are enabled (elastic#18818) Fix panic on `metricbeat test modules` (elastic#18797) [CI] Fix permissions in MacOSX agents (elastic#18847) [Ingest Manager] When not port are specified and the https is used fallback to 443 (elastic#18844) [Ingest Manager] Fix install service script for windows (elastic#18814) [Metricbeat] Fix getting compute instance metadata with partial zone/region config (elastic#18757) Improve error messages in s3 input (elastic#18824) Add memory metrics into compute googlecloud (elastic#18802) include bucket name when logging error (elastic#18679) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR fixes getting compute instance metadata when zone/region in googlecloud.yml is partial. For example:
This bug is introduced from #17913
Why is it important?
Instances.GetAPI does not accept partial zone name andRegions.GetAPI does not accept partial region name. So instead of using the region/zone information from the config, use the zone label from time series metric.Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.