Skip to content
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] Add dimensions to S3 Storage Lens #6583

Merged
merged 6 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/aws/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.44.5"
changes:
- description: Add dimension fields to S3 storage lens.
type: enhancement
link: https://github.com/elastic/integrations/pull/6583
- version: "1.44.4"
changes:
- description: Migrate AWS Metric Overview dashboard visualizations to lens.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
processors:
- fingerprint:
fields: ["aws.dimensions"]
target_field: "aws.s3_storage_lens.dimensions_id"
ignore_missing: true
constanca-m marked this conversation as resolved.
Show resolved Hide resolved
on_failure:
- append:
field: error.message
value: '{{{ _ingest.on_failure_message }}}'
5 changes: 5 additions & 0 deletions packages/aws/data_stream/s3_storage_lens/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: cloud
- external: ecs
name: cloud.account.id
dimension: true
- external: ecs
name: cloud.account.name
- external: ecs
Expand All @@ -14,6 +15,7 @@
name: cloud.provider
- external: ecs
name: cloud.region
dimension: true
- external: ecs
name: ecs.version
- external: ecs
Expand Down Expand Up @@ -60,3 +62,6 @@
name: container.labels
- external: ecs
name: container.name
- name: agent.id
external: ecs
dimension: true
4 changes: 4 additions & 0 deletions packages/aws/data_stream/s3_storage_lens/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
- name: s3_storage_lens
type: group
fields:
- name: dimensions_id
type: keyword
dimension: true
description: Fingerprint generated by aws.dimensions.* fields.
- name: metrics
type: group
fields:
Expand Down
2 changes: 2 additions & 0 deletions packages/aws/docs/s3_storage_lens.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,12 @@ An example event for `s3_storage_lens` looks as following:
| Field | Description | Type |
|---|---|---|
| @timestamp | Event timestamp. | date |
| agent.id | Unique identifier of this agent (if one exists). Example: For Beats this would be beat.id. | keyword |
| aws.\*.metrics.\*.\* | Metrics that returned from Cloudwatch API query. | object |
| aws.cloudwatch.namespace | The namespace specified when query cloudwatch api. | keyword |
| aws.dimensions.\* | Metric dimensions. | object |
| aws.s3.bucket.name | Name of a S3 bucket. | keyword |
| aws.s3_storage_lens.dimensions_id | Fingerprint generated by aws.dimensions.\* fields. | keyword |
| aws.s3_storage_lens.metrics.4xxErrors.avg | The total 4xx errors in scope. | long |
| aws.s3_storage_lens.metrics.5xxErrors.avg | The total 5xx errors in scope. | long |
| aws.s3_storage_lens.metrics.AllRequests.avg | The total number of requests made. | long |
Expand Down
2 changes: 1 addition & 1 deletion packages/aws/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: aws
title: AWS
version: 1.44.4
version: 1.44.5
license: basic
description: Collect logs and metrics from Amazon Web Services (AWS) with Elastic Agent.
type: integration
Expand Down