Skip to content

Commit

Permalink
Cherry-pick elastic#11982 to 7.0: Change type from scaled_float to lo…
Browse files Browse the repository at this point in the history
…ng and add format (elastic#11982) (elastic#12158)

* Change type from scaled_float to long and add format (elastic#11982)
(cherry picked from commit b97e5b7)
* Move changelog to Bugfixes
  • Loading branch information
kaiyan-sheng committed May 16, 2019
1 parent 0202a63 commit df8467e
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 25 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ https://github.com/elastic/beats/compare/v7.0.0...7.0[Check the HEAD diff]
*Metricbeat*

- Update documentation with cloudwatch:ListMetrics permission. {pull}11987[11987]
- Change some field type from scaled_float to long in aws module. {pull}11982[11982]

*Packetbeat*

Expand Down
32 changes: 20 additions & 12 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ The percentage of allocated EC2 compute units that are currently in use on the i
*`aws.ec2.cpu.credit_usage`*::
+
--
type: scaled_float
type: long
The number of CPU credits spent by the instance for CPU utilization.
Expand All @@ -857,7 +857,7 @@ The number of CPU credits spent by the instance for CPU utilization.
*`aws.ec2.cpu.credit_balance`*::
+
--
type: scaled_float
type: long
The number of earned CPU credits that an instance has accrued since it was launched or started.
Expand All @@ -867,7 +867,7 @@ The number of earned CPU credits that an instance has accrued since it was launc
*`aws.ec2.cpu.surplus_credit_balance`*::
+
--
type: scaled_float
type: long
The number of surplus credits that have been spent by an unlimited instance when its CPUCreditBalance value is zero.
Expand All @@ -877,7 +877,7 @@ The number of surplus credits that have been spent by an unlimited instance when
*`aws.ec2.cpu.surplus_credits_charged`*::
+
--
type: scaled_float
type: long
The number of spent surplus credits that are not paid down by earned CPU credits, and which thus incur an additional charge.
Expand All @@ -887,7 +887,7 @@ The number of spent surplus credits that are not paid down by earned CPU credits
*`aws.ec2.network.in.packets`*::
+
--
type: scaled_float
type: long
The number of packets received on all network interfaces by the instance.
Expand All @@ -897,7 +897,7 @@ The number of packets received on all network interfaces by the instance.
*`aws.ec2.network.out.packets`*::
+
--
type: scaled_float
type: long
The number of packets sent out on all network interfaces by the instance.
Expand All @@ -907,7 +907,9 @@ The number of packets sent out on all network interfaces by the instance.
*`aws.ec2.network.in.bytes`*::
+
--
type: scaled_float
type: long
format: bytes
The number of bytes received on all network interfaces by the instance.
Expand All @@ -917,7 +919,9 @@ The number of bytes received on all network interfaces by the instance.
*`aws.ec2.network.out.bytes`*::
+
--
type: scaled_float
type: long
format: bytes
The number of bytes sent out on all network interfaces by the instance.
Expand All @@ -927,7 +931,9 @@ The number of bytes sent out on all network interfaces by the instance.
*`aws.ec2.diskio.read.bytes`*::
+
--
type: scaled_float
type: long
format: bytes
Bytes read from all instance store volumes available to the instance.
Expand All @@ -937,7 +943,9 @@ Bytes read from all instance store volumes available to the instance.
*`aws.ec2.diskio.write.bytes`*::
+
--
type: scaled_float
type: long
format: bytes
Bytes written to all instance store volumes available to the instance.
Expand All @@ -947,7 +955,7 @@ Bytes written to all instance store volumes available to the instance.
*`aws.ec2.diskio.read.ops`*::
+
--
type: scaled_float
type: long
Completed read operations from all instance store volumes available to the instance in a specified period of time.
Expand All @@ -957,7 +965,7 @@ Completed read operations from all instance store volumes available to the insta
*`aws.ec2.diskio.write.ops`*::
+
--
type: scaled_float
type: long
Completed write operations to all instance store volumes available to the instance in a specified period of time.
Expand Down
28 changes: 16 additions & 12 deletions x-pack/metricbeat/module/aws/ec2/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,51 +9,55 @@
description: >
The percentage of allocated EC2 compute units that are currently in use on the instance.
- name: cpu.credit_usage
type: scaled_float
type: long
description: >
The number of CPU credits spent by the instance for CPU utilization.
- name: cpu.credit_balance
type: scaled_float
type: long
description: >
The number of earned CPU credits that an instance has accrued since it was launched or started.
- name: cpu.surplus_credit_balance
type: scaled_float
type: long
description: >
The number of surplus credits that have been spent by an unlimited instance when its CPUCreditBalance value is zero.
- name: cpu.surplus_credits_charged
type: scaled_float
type: long
description: >
The number of spent surplus credits that are not paid down by earned CPU credits, and which thus incur an additional charge.
- name: network.in.packets
type: scaled_float
type: long
description: >
The number of packets received on all network interfaces by the instance.
- name: network.out.packets
type: scaled_float
type: long
description: >
The number of packets sent out on all network interfaces by the instance.
- name: network.in.bytes
type: scaled_float
type: long
format: bytes
description: >
The number of bytes received on all network interfaces by the instance.
- name: network.out.bytes
type: scaled_float
type: long
format: bytes
description: >
The number of bytes sent out on all network interfaces by the instance.
- name: diskio.read.bytes
type: scaled_float
type: long
format: bytes
description: >
Bytes read from all instance store volumes available to the instance.
- name: diskio.write.bytes
type: scaled_float
type: long
format: bytes
description: >
Bytes written to all instance store volumes available to the instance.
- name: diskio.read.ops
type: scaled_float
type: long
description: >
Completed read operations from all instance store volumes available to the instance in a specified period of time.
- name: diskio.write.ops
type: scaled_float
type: long
description: >
Completed write operations to all instance store volumes available to the instance in a specified period of time.
- name: status.check_failed
Expand Down
2 changes: 1 addition & 1 deletion x-pack/metricbeat/module/aws/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit df8467e

Please sign in to comment.