[Metricbeat] gcp: use ServiceMetrixPrefix in field extractor too#27286
Merged
endorama merged 3 commits intoelastic:masterfrom Aug 13, 2021
Merged
Conversation
56c8e13 to
2472cf4
Compare
Contributor
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
Prior to this commit `path.Join` was used to add the prefix to a metric, thus adding the slash explicitly was not needed. With to the addition of `RemovePrefixFrom()` I consider a better choice to always normalize the prefix through the `prefix()` function. Is worth considering that the prefix as written in the GCP doc contains the final slash.
Contributor
|
Pinging @elastic/integrations (Team:Integrations) |
8 tasks
mergify bot
pushed a commit
that referenced
this pull request
Aug 13, 2021
) (cherry picked from commit aa3a2b3)
endorama
added a commit
that referenced
this pull request
Aug 13, 2021
endorama
added a commit
that referenced
this pull request
Aug 13, 2021
…field extractor too (#27357) Co-authored-by: endorama <526307+endorama@users.noreply.github.com>
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?
Fixes a bug introduced with #26960
Why is it important?
#26960 was a partial implementation of the feature: it was missing a code change to use
ServiceMetricPrefixinincomingFieldExtractor.Checklist
[ ] I have made corresponding change to the default configuration filesCHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Author's Checklist
How to test this PR locally
Run
go test -v ./module/gcp/metrics/Related issues
Use cases
Screenshots
Logs