-
Notifications
You must be signed in to change notification settings - Fork 458
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
[AWS][EC2] Add processors to rename and drop fields #5812
Conversation
Signed-off-by: constanca-m <[email protected]>
Signed-off-by: constanca-m <[email protected]>
🌐 Coverage report
|
- remove: | ||
ignore_missing: true | ||
field: | ||
- aws.ec2.metrics |
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.
do you think this could be considered a breaking change for customers who have potentially built dashboards on the existing (un-renamed) metrics fields?
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.
Yes, regarding the metrics.*
maybe it is a breaking change, but it is not in sync with beats. And the documentation is not correct because the fields are mixed up. But maybe the best option is to support both for now. What do you think?
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.
yeh it would avoid worrying about breaking things, but for all other customers means a bunch of duplication which sucks. @vinaychandrasekhar @SubhrataK what do you think? so long as the dashboards still work can we remove fields? the public documentation does mention the fields in the exported fields table, as shown below.
@constanca-m i also added a pipeline test to validate whatever decision we make here.
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.
@tommyers-elastic @vinayamohandoss @SubhrataK Any updates on this?
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.
Just my two cents.
do you think this could be considered a breaking change for customers who have potentially built dashboards on the existing (un-renamed) metrics fields?
It might break the dashboards, but I do not think it should be considered a breaking change. Users have to explicitly upgrade the integration, no functionality breaks automatically. We had similar cases in the past (example).
In any case, we can consider bump the version to 1.5.0
or even 2.0.0
to signal the field naming change, if anything.
But maybe the best option is to support both for now. What do you think?
This is a possible option, but it would only delay the inevitable (e.g removing aws.ec2.metrics
fields). I would opt for this only we are really on a tight schedule, to unblock this PR.
Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as |
@constanca-m I see no change made on the OOTB dashboards. Have you verified that they work properly or they need to be updated? |
It works for me as well @girodav |
/test |
After discussion with @constanca-m and @tommyers-elastic , we decide to not rename these fields to match Metricbeat at this point in AWS integration. Instead we want to keep the name in the format from |
What does this PR do?
This PR syncs the EC2 fields from integrations with the ones in metricbeat.
In metricbeat, there are processors that rename and drop fields. Example:
aws.ec2.metrics.CPUCreditUsage.avg
is renamed toaws.ec2.cpu.credit_usage
(code here). However, there were no such processors in the integration, which caused the values from theec2
group to be empty.Checklist
changelog.yml
file.How to test this PR locally
elastic-package build
.elastic-package stack up -v -d --services package-registry
.