Skip to content

Commit 9c7a300

Browse files
authored
[aws] [cloudwatch_metrics] Map aws.dimensions field as object (#11883)
Change the mapping type for the `aws.dimensions` field from `flattened` to `object`. Currently, all `*_metrics` data streams but one use the `object` mapping. The `cloudwatch_metrics` data stream uses the `flattened` type instead. We need to unify the mapping of `aws.dimensions` across all metrics-related data streams in the AWS integration. If all data streams use the exact mapping for `aws.dimensions`, users will be able to query and build a dashboard that correlates data across different data streams.
1 parent f4ce238 commit 9c7a300

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

packages/aws/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "2.37.0"
3+
changes:
4+
- description: Map aws.dimensions as object instead of flattened in CloudWatch metrics.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/11883
27
- version: "2.36.2"
38
changes:
49
- description: Include pipeline test examples to accommodate the new Cloudtrail format for the `CreateGroup` and `UpdateGroup` event types.

packages/aws/data_stream/cloudwatch_metrics/fields/package-fields.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
type: flattened
66
description: |
77
Tag key value pairs from aws resources.
8-
- name: dimensions
9-
type: flattened
8+
- name: dimensions.*
9+
type: keyword
10+
dimension: true
1011
description: |
1112
Metric dimensions.
1213
- name: dimensions_fingerprint
1314
type: keyword
1415
description: |
1516
Autogenerated ID representing the fingerprint of the aws.dimensions object
16-
dimension: true
1717
- name: 'aws.*.metrics.*.*'
1818
type: object
1919
object_type: double

packages/aws/docs/cloudwatch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Please refer to the following [document](https://www.elastic.co/guide/en/ecs/cur
183183
| agent.id | Unique identifier of this agent (if one exists). Example: For Beats this would be beat.id. | keyword | |
184184
| aws.\*.metrics.\*.\* | Metrics that returned from Cloudwatch API query. | object | gauge |
185185
| aws.cloudwatch.namespace | The namespace specified when query cloudwatch api. | keyword | |
186-
| aws.dimensions | Metric dimensions. | flattened | |
186+
| aws.dimensions.\* | Metric dimensions. | keyword | |
187187
| aws.dimensions_fingerprint | Autogenerated ID representing the fingerprint of the aws.dimensions object | keyword | |
188188
| aws.tags | Tag key value pairs from aws resources. | flattened | |
189189
| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | |

packages/aws/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 3.0.0
22
name: aws
33
title: AWS
4-
version: 2.36.2
4+
version: 2.37.0
55
description: Collect logs and metrics from Amazon Web Services (AWS) with Elastic Agent.
66
type: integration
77
categories:

0 commit comments

Comments
 (0)