Skip to content

Commit

Permalink
[AWS Farget] Set dimension fields (#6733)
Browse files Browse the repository at this point in the history
* Set dimension fields.

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

* Update changelog.

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

* Add container.name as dimension

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

* Resolve conflicts

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

---------

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
  • Loading branch information
constanca-m authored Jul 7, 2023
1 parent 4f369e8 commit 4877bec
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/awsfargate/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: 0.2.3
changes:
- description: Set dimension fields and add `agent.id`.
type: enhancement
link: https://github.com/elastic/integrations/pull/6733
- version: 0.2.2
changes:
- description: Add metric type to fields.
Expand Down
6 changes: 6 additions & 0 deletions packages/awsfargate/data_stream/task_stats/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
name: container.id
- external: ecs
name: container.name
dimension: true
- external: ecs
name: container.image.name
# container + custom labels
Expand All @@ -44,10 +45,15 @@
description: ECS container name
- name: container.labels.com_amazonaws_ecs_task-arn
type: keyword
dimension: true
description: ECS task ARN
- name: container.labels.com_amazonaws_ecs_task-definition-family
type: keyword
description: ECS task definition family
- name: container.labels.com_amazonaws_ecs_task-definition-version
type: keyword
description: ECS task definition version
# agent
- name: agent.id
external: ecs
dimension: true
1 change: 1 addition & 0 deletions packages/awsfargate/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ If you want to learn more about Amazon ECS metrics, take a look at the blog post
| Field | Description | Type | Metric Type |
|---|---|---|---|
| @timestamp | Event timestamp. | date | |
| agent.id | Unique identifier of this agent (if one exists). Example: For Beats this would be beat.id. | keyword | |
| awsfargate.task_stats.cluster_name | Cluster name | keyword | |
| awsfargate.task_stats.cpu.core | | object | |
| awsfargate.task_stats.cpu.core.\*.norm.pct | Percentage of time per CPU core normalized by the number of CPU cores. | scaled_float | gauge |
Expand Down
2 changes: 1 addition & 1 deletion packages/awsfargate/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: awsfargate
title: AWS Fargate
version: 0.2.2
version: 0.2.3
license: basic
description: Collects metrics from containers and tasks running on Amazon ECS clusters with Elastic Agent.
type: integration
Expand Down

0 comments on commit 4877bec

Please sign in to comment.