-
Notifications
You must be signed in to change notification settings - Fork 448
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 Cloudwatch] Add metric_type #6999
[AWS Cloudwatch] Add metric_type #6999
Conversation
Signed-off-by: Tetiana Kravchenko <[email protected]>
Signed-off-by: Tetiana Kravchenko <[email protected]>
Signed-off-by: Tetiana Kravchenko <[email protected]>
description: | | ||
Metrics that returned from Cloudwatch API query. | ||
- name: 'aws.*.metrics.*.*' | ||
type: double |
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.
@kaiyan-sheng could you please help here? usually type: object
is used in combination with object_type
, but here it is skipped, is it intentional?
Is it fine to define it as a double
?
I've also checked beats - https://github.com/elastic/beats/blob/main/x-pack/metricbeat/module/aws/cloudwatch/_meta/fields.yml and can't find this field there
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.
In beats, it's defined under aws
: https://github.com/elastic/beats/blob/main/x-pack/metricbeat/module/aws/_meta/fields.yml#L27
You are right, we are missing the object type here, it should be something like:
type: object
object_type: double
object_type_mapping_type: "*"
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.
thanks, I didn't look into this file. So it actually should be correct to set it to double
, before this change - the object type was defined dynamically.
🌐 Coverage report
|
packages/aws/manifest.yml
Outdated
license: basic | ||
description: Collect logs and metrics from Amazon Web Services (AWS) with Elastic Agent. | ||
type: integration | ||
categories: | ||
- aws | ||
release: ga | ||
conditions: | ||
kibana.version: "^8.8.1" | ||
kibana.version: "^8.9.0" |
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.
Sorry I probably missed something, why do we need to update the kibana version here? If the upgrade is required, then we have to wait till 8.9.0 is released before merging this PR then.
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.
I've reverted this change for this PR - It will be added with the TSDB enablement in next PR.
As I understand 8.9.0 is planned for today anyway
Signed-off-by: Tetiana Kravchenko <[email protected]>
Signed-off-by: Tetiana Kravchenko <[email protected]>
Package aws - 1.50.6 containing this change is available at https://epr.elastic.co/search?package=aws |
What does this PR do?
Add metric_type for the aws cloudwatch data_stream.
Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
Screenshots
After this change:
time_series_metric
will be added to the mapping:Note: for some reason not all metrics have
Asked Fleet team to check the mapping generations
Why can't be used
?
time_series_metric
will not be added for this case.Why the format was changed from:
to:
due to this limitation - elastic/kibana#162041