[Metricbeat] gcp: allow service metric prefix override#26960
[Metricbeat] gcp: allow service metric prefix override#26960endorama merged 7 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/integrations (Team:Integrations) |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
kaiyan-sheng
left a comment
There was a problem hiding this comment.
One question here: when both service_metric_prefix and service are given, service will be ignored?
Also adding a new config option also requires updating the documentation here: https://github.com/elastic/beats/blob/master/x-pack/metricbeat/module/gcp/_meta/docs.asciidoc
@kaiyan-sheng yes, as the explicit configuration takes priority. We may want to deprecate the current logic based on |
@kaiyan-sheng I added it to the |
Since user has the freedom to use
|
jsoriano
left a comment
There was a problem hiding this comment.
Nice to see this done in a backwards compatible way 👍
Added some suggestions about the new setting, feel free to ignore them, not sure if I have all the context 🙂
1c3c0e1 to
d29a101
Compare
kaiyan-sheng
left a comment
There was a problem hiding this comment.
Missing a changelog?
|
This pull request is now in conflicts. Could you fix it? 🙏 |
844a055 to
1444fa9
Compare
(cherry picked from commit 5481b06)
…override (#27094) Co-authored-by: endorama <526307+endorama@users.noreply.github.com>
What does this PR do?
While working at #26824 I found out that some GCP Stackdriver metrics require a prefix which is not in the form
<servicename>.googleapis.com.This PR address this by adding a new field in the
manifest.yml:service_metric_prefix. If this field is set, the value is used as metric prefix; if is not set, the previous behaviour is kept for backward compatibility.Provide tests for the old and new behaviours.
Why is it important?
This change is required for #26824
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
Related issues
Use cases
Screenshots
Logs