-
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: allow service metric prefix override #26960
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 🧪
|
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.
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
|
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.
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
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.
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.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs