Skip to content

Commit c4b024d

Browse files
authored
Enhance AWS S3 integration dashboard (elastic#4641)
1 parent f52e6db commit c4b024d

File tree

8 files changed

+2946
-484
lines changed

8 files changed

+2946
-484
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: "1.28.0"
3+
changes:
4+
- description: Enhance S3 integration dashboard
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/4641
27
- version: "1.27.3"
38
changes:
49
- description: Support multiple forwarded IPs in cloudfront integration

packages/aws/data_stream/s3_request/agent/stream/stream.yml.hbs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,24 @@ metrics:
3737
- namespace: AWS/S3
3838
statistic: ["Average"]
3939
name:
40+
- SelectScannedBytes
41+
- SelectReturnedBytes
42+
- BytesDownloaded
43+
- BytesUploaded
44+
- 4xxErrors
45+
- 5xxErrors
46+
- FirstByteLatency
47+
- TotalRequestLatency
48+
- namespace: AWS/S3
49+
statistic: ["Sum"]
50+
name:
4051
- AllRequests
4152
- GetRequests
4253
- PutRequests
4354
- DeleteRequests
4455
- HeadRequests
4556
- PostRequests
4657
- SelectRequests
47-
- SelectScannedBytes
48-
- SelectReturnedBytes
4958
- ListRequests
5059
- BytesDownloaded
5160
- BytesUploaded
52-
- 4xxErrors
53-
- 5xxErrors
54-
- FirstByteLatency
55-
- TotalRequestLatency

packages/aws/data_stream/s3_request/elasticsearch/ingest_pipeline/default.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@ description: "Pipeline for S3 request metrics"
33

44
processors:
55
- rename:
6-
field: aws.s3.metrics.AllRequests.avg
6+
field: aws.s3.metrics.AllRequests.sum
77
target_field: aws.s3_request.requests.total
88
ignore_missing: true
99
- rename:
10-
field: aws.s3.metrics.GetRequests.avg
10+
field: aws.s3.metrics.GetRequests.sum
1111
target_field: aws.s3_request.requests.get
1212
ignore_missing: true
1313
- rename:
14-
field: aws.s3.metrics.PutRequests.avg
14+
field: aws.s3.metrics.PutRequests.sum
1515
target_field: aws.s3_request.requests.put
1616
ignore_missing: true
1717
- rename:
18-
field: aws.s3.metrics.DeleteRequests.avg
18+
field: aws.s3.metrics.DeleteRequests.sum
1919
target_field: aws.s3_request.requests.delete
2020
ignore_missing: true
2121
- rename:
22-
field: aws.s3.metrics.HeadRequests.avg
22+
field: aws.s3.metrics.HeadRequests.sum
2323
target_field: aws.s3_request.requests.head
2424
ignore_missing: true
2525
- rename:
26-
field: aws.s3.metrics.PostRequests.avg
26+
field: aws.s3.metrics.PostRequests.sum
2727
target_field: aws.s3_request.requests.post
2828
ignore_missing: true
2929
- rename:
30-
field: aws.s3.metrics.SelectRequests.avg
30+
field: aws.s3.metrics.SelectRequests.sum
3131
target_field: aws.s3_request.requests.select
3232
ignore_missing: true
3333
- rename:
@@ -39,7 +39,7 @@ processors:
3939
target_field: aws.s3_request.requests.select_returned.bytes
4040
ignore_missing: true
4141
- rename:
42-
field: aws.s3.metrics.ListRequests.avg
42+
field: aws.s3.metrics.ListRequests.sum
4343
target_field: aws.s3_request.requests.list
4444
ignore_missing: true
4545
- rename:
@@ -50,6 +50,14 @@ processors:
5050
field: aws.s3.metrics.BytesUploaded.avg
5151
target_field: aws.s3_request.uploaded.bytes
5252
ignore_missing: true
53+
- rename:
54+
field: aws.s3.metrics.BytesDownloaded.sum
55+
target_field: aws.s3_request.downloaded.bytes_per_period
56+
ignore_missing: true
57+
- rename:
58+
field: aws.s3.metrics.BytesUploaded.sum
59+
target_field: aws.s3_request.uploaded.bytes_per_period
60+
ignore_missing: true
5361
- rename:
5462
field: aws.s3.metrics.4xxErrors.avg
5563
target_field: aws.s3_request.errors.4xx

packages/aws/data_stream/s3_request/fields/fields.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,21 @@
6363
format: bytes
6464
description: |
6565
The number bytes downloaded for requests made to an Amazon S3 bucket, where the response includes a body.
66+
- name: downloaded.bytes_per_period
67+
type: long
68+
format: bytes
69+
description: |
70+
The number bytes per period downloaded for requests made to an Amazon S3 bucket, where the response includes a body.
6671
- name: uploaded.bytes
6772
type: long
6873
format: bytes
6974
description: |
7075
The number bytes uploaded that contain a request body, made to an Amazon S3 bucket.
76+
- name: uploaded.bytes_per_period
77+
type: long
78+
format: bytes
79+
description: |
80+
The number bytes per period uploaded that contain a request body, made to an Amazon S3 bucket.
7181
- name: errors.4xx
7282
type: long
7383
description: |

packages/aws/docs/s3.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ An example event for `s3_request` looks as following:
505505
| aws.dimensions.StorageType | This dimension filters the data that you have stored in a bucket by types of storage. | keyword |
506506
| aws.s3.bucket.name | Name of a S3 bucket. | keyword |
507507
| aws.s3_request.downloaded.bytes | The number bytes downloaded for requests made to an Amazon S3 bucket, where the response includes a body. | long |
508+
| aws.s3_request.downloaded.bytes_per_period | The number bytes per period downloaded for requests made to an Amazon S3 bucket, where the response includes a body. | long |
508509
| aws.s3_request.errors.4xx | The number of HTTP 4xx client error status code requests made to an Amazon S3 bucket with a value of either 0 or 1. | long |
509510
| aws.s3_request.errors.5xx | The number of HTTP 5xx server error status code requests made to an Amazon S3 bucket with a value of either 0 or 1. | long |
510511
| aws.s3_request.latency.first_byte.ms | The per-request time from the complete request being received by an Amazon S3 bucket to when the response starts to be returned. | long |
@@ -520,6 +521,7 @@ An example event for `s3_request` looks as following:
520521
| aws.s3_request.requests.select_scanned.bytes | The number of bytes of data scanned with Amazon S3 SELECT Object Content requests in an Amazon S3 bucket. | long |
521522
| aws.s3_request.requests.total | The total number of HTTP requests made to an Amazon S3 bucket, regardless of type. | long |
522523
| aws.s3_request.uploaded.bytes | The number bytes uploaded that contain a request body, made to an Amazon S3 bucket. | long |
524+
| aws.s3_request.uploaded.bytes_per_period | The number bytes per period uploaded that contain a request body, made to an Amazon S3 bucket. | long |
523525
| aws.tags.\* | Tag key value pairs from aws resources. | object |
524526
| cloud | Fields related to the cloud or infrastructure the events are coming from. | group |
525527
| 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 |
224 KB
Loading

0 commit comments

Comments
 (0)