Skip to content

Commit efc513f

Browse files
authored
[AWS Fargate] Added support for DesiredStatus and KnownStatus for ECS Tasks (#3835)
1 parent 49ce581 commit efc513f

File tree

5 files changed

+20
-1
lines changed

5 files changed

+20
-1
lines changed

packages/awsfargate/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: 0.1.2
3+
changes:
4+
- description: Add DesiredStatus and KnownStatus for Fargate Tasks among the collected fields
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/3835
27
- version: 0.1.1
38
changes:
49
- description: Improve description and screenshots

packages/awsfargate/data_stream/task_stats/fields/fields.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
type: keyword
1313
description: |
1414
Container identifier across tasks and clusters, which equals to container.name + '/' + container.id.
15+
- name: task_desired_status
16+
type: keyword
17+
description: |
18+
The desired status for the task from Amazon ECS.
19+
- name: task_known_status
20+
type: keyword
21+
description: |
22+
The known status for the task from Amazon ECS.
1523
- name: cpu
1624
type: group
1725
fields:

packages/awsfargate/data_stream/task_stats/sample_event.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"awsfargate": {
44
"task_stats": {
55
"cluster_name": "default",
6+
"task_known_status": "RUNNING",
7+
"task_desired_status": "RUNNING",
68
"cpu": {
79
"core": null,
810
"kernel": {

packages/awsfargate/docs/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@ If you want to learn more about Amazon ECS metrics, take a look at the blog post
339339
| awsfargate.task_stats.network.\*.outbound.dropped | Total number of dropped incoming packets. | long |
340340
| awsfargate.task_stats.network.\*.outbound.errors | Total errors on incoming packets. | long |
341341
| awsfargate.task_stats.network.\*.outbound.packets | Total number of incoming packets. | long |
342+
| awsfargate.task_stats.task_desired_status | The desired status for the task from Amazon ECS. | keyword |
343+
| awsfargate.task_stats.task_known_status | The known status for the task from Amazon ECS. | keyword |
342344
| awsfargate.task_stats.task_name | ECS task name | keyword |
343345
| cloud | Fields related to the cloud or infrastructure the events are coming from. | group |
344346
| 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 |
@@ -374,6 +376,8 @@ An example event for `task_stats` looks as following:
374376
"awsfargate": {
375377
"task_stats": {
376378
"cluster_name": "default",
379+
"task_known_status": "RUNNING",
380+
"task_desired_status": "RUNNING",
377381
"cpu": {
378382
"core": null,
379383
"kernel": {

packages/awsfargate/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 1.0.0
22
name: awsfargate
33
title: AWS Fargate
4-
version: 0.1.1
4+
version: 0.1.2
55
license: basic
66
description: Collects metrics from containers and tasks running on Amazon ECS clusters with Elastic Agent.
77
type: integration

0 commit comments

Comments
 (0)