Skip to content

Commit

Permalink
[AWS Fargate] Added support for DesiredStatus and KnownStatus for ECS…
Browse files Browse the repository at this point in the history
… Tasks (#3835)
  • Loading branch information
girodav authored Jul 26, 2022
1 parent 49ce581 commit efc513f
Show file tree
Hide file tree
Showing 5 changed files with 20 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.1.2
changes:
- description: Add DesiredStatus and KnownStatus for Fargate Tasks among the collected fields
type: enhancement
link: https://github.com/elastic/integrations/pull/3835
- version: 0.1.1
changes:
- description: Improve description and screenshots
Expand Down
8 changes: 8 additions & 0 deletions packages/awsfargate/data_stream/task_stats/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
type: keyword
description: |
Container identifier across tasks and clusters, which equals to container.name + '/' + container.id.
- name: task_desired_status
type: keyword
description: |
The desired status for the task from Amazon ECS.
- name: task_known_status
type: keyword
description: |
The known status for the task from Amazon ECS.
- name: cpu
type: group
fields:
Expand Down
2 changes: 2 additions & 0 deletions packages/awsfargate/data_stream/task_stats/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"awsfargate": {
"task_stats": {
"cluster_name": "default",
"task_known_status": "RUNNING",
"task_desired_status": "RUNNING",
"cpu": {
"core": null,
"kernel": {
Expand Down
4 changes: 4 additions & 0 deletions packages/awsfargate/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ If you want to learn more about Amazon ECS metrics, take a look at the blog post
| awsfargate.task_stats.network.\*.outbound.dropped | Total number of dropped incoming packets. | long |
| awsfargate.task_stats.network.\*.outbound.errors | Total errors on incoming packets. | long |
| awsfargate.task_stats.network.\*.outbound.packets | Total number of incoming packets. | long |
| awsfargate.task_stats.task_desired_status | The desired status for the task from Amazon ECS. | keyword |
| awsfargate.task_stats.task_known_status | The known status for the task from Amazon ECS. | keyword |
| awsfargate.task_stats.task_name | ECS task name | keyword |
| cloud | Fields related to the cloud or infrastructure the events are coming from. | group |
| 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 |
Expand Down Expand Up @@ -374,6 +376,8 @@ An example event for `task_stats` looks as following:
"awsfargate": {
"task_stats": {
"cluster_name": "default",
"task_known_status": "RUNNING",
"task_desired_status": "RUNNING",
"cpu": {
"core": null,
"kernel": {
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.1.1
version: 0.1.2
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 efc513f

Please sign in to comment.