Skip to content

Commit

Permalink
[AWS][EC2] Add metric type to EC2 (#7490)
Browse files Browse the repository at this point in the history
* Add metric type

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

* Update changelog.yml

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

---------

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
  • Loading branch information
constanca-m committed Aug 22, 2023
1 parent db2b08c commit 2f25340
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 74 deletions.
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.53.5"
changes:
- description: Set metric type in EC2 data stream fields.
type: enhancement
link: https://github.com/elastic/integrations/pull/7490
- version: "1.53.4"
changes:
- description: Add dimension fields to EC2 data stream.
Expand Down
24 changes: 24 additions & 0 deletions packages/aws/data_stream/ec2_metrics/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,98 +28,122 @@
fields:
- name: CPUCreditUsage.avg
type: long
metric_type: gauge
description: |
The number of CPU credits spent by the instance for CPU utilization.
- name: CPUCreditBalance.avg
type: long
metric_type: gauge
description: |
The number of earned CPU credits that an instance has accrued since it was launched or started.
- name: CPUSurplusCreditBalance.avg
type: long
metric_type: gauge
description: |
The number of surplus credits that have been spent by an unlimited instance when its CPUCreditBalance value is zero.
- name: CPUSurplusCreditsCharged.avg
type: long
metric_type: gauge
description: |
The number of spent surplus credits that are not paid down by earned CPU credits, and which thus incur an additional charge.
- name: CPUUtilization.avg
type: long
metric_type: gauge
description: |
The average percentage of physical CPU time that Amazon EC2 uses to run the EC2 instance.
- name: NetworkPacketsIn.rate
type: long
metric_type: gauge
description: |
The number of packets per second sent out on all network interfaces by the instance.
- name: NetworkPacketsIn.sum
type: long
metric_type: gauge
description: |
The number of packets total sent out on all network interfaces by the instance.
- name: NetworkPacketsOut.rate
type: long
metric_type: gauge
description: |
The number of packets per second sent out on all network interfaces by the instance.
- name: NetworkPacketsOut.sum
type: long
metric_type: gauge
description: |
The number of packets total sent out on all network interfaces by the instance.
- name: NetworkIn.rate
type: long
metric_type: gauge
description: |
The number of bytes per second received on all network interfaces by the instance.
- name: NetworkIn.sum
type: long
metric_type: gauge
description: |
The number of bytes total received on all network interfaces by the instance.
- name: NetworkOut.rate
type: long
metric_type: gauge
description: |
The number of bytes per second sent out on all network interfaces by the instance.
- name: NetworkOut.sum
type: long
metric_type: gauge
description: |
The number of bytes total sent out on all network interfaces by the instance.
- name: DiskReadBytes.rate
type: long
metric_type: gauge
description: |
Bytes read per second from all instance store volumes available to the instance.
- name: DiskReadBytes.sum
type: long
metric_type: gauge
description: |
Total bytes read from all instance store volumes available to the instance.
- name: DiskWriteBytes.rate
type: long
metric_type: gauge
description: |
Bytes written per second to all instance store volumes available to the instance.
- name: DiskWriteBytes.sum
type: long
metric_type: gauge
description: |
Total bytes written to all instance store volumes available to the instance.
- name: DiskReadOps.rate
type: long
metric_type: gauge
description: |
Completed read operations per second from all instance store volumes available to the instance in a specified period of time.
- name: DiskReadOps.sum
type: long
metric_type: gauge
description: |
Total completed read operations from all instance store volumes available to the instance in a specified period of time.
- name: DiskWriteOps.rate
type: long
metric_type: gauge
description: |
Completed write operations per second to all instance store volumes available to the instance in a specified period of time.
- name: DiskWriteOps.sum
type: long
metric_type: gauge
description: |
Total completed write operations to all instance store volumes available to the instance in a specified period of time.
- name: StatusCheckFailed.avg
type: long
metric_type: gauge
description: |
Reports whether the instance has passed both the instance status check and the system status check in the last minute.
- name: StatusCheckFailed_System.avg
type: long
metric_type: gauge
description: |
Reports whether the instance has passed the system status check in the last minute.
- name: StatusCheckFailed_Instance.avg
type: long
metric_type: gauge
description: |
Reports whether the instance has passed the instance status check in the last minute.
- name: instance.core.count
Expand Down

0 comments on commit 2f25340

Please sign in to comment.