Skip to content

Commit

Permalink
Change type from scaled_float to long and add format (elastic#11982)
Browse files Browse the repository at this point in the history
* Change type from scaled_float to long and add format
  • Loading branch information
kaiyan-sheng authored and ph committed May 21, 2019
1 parent 29f5ba7 commit 38c5487
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 37 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Add new option `OpMultiplyBuckets` to scale histogram buckets to avoid decimal points in final events {pull}10994[10994]
- Change cloud.provider from ec2 to aws and from gce to gcp in add_cloud_metadata to align with ECS. {issue}10775[10775] {pull}11687[11687]
- system/raid metricset now uses /sys/block instead of /proc/mdstat for data. {pull}11613[11613]
- Change some field type from scaled_float to long in aws module. {pull}11982[11982]

*Packetbeat*

Expand Down
60 changes: 42 additions & 18 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,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 @@ -897,7 +897,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 @@ -907,7 +907,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 @@ -917,7 +917,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 @@ -927,7 +927,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 @@ -937,7 +937,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 @@ -947,7 +947,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 @@ -957,7 +959,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 @@ -967,7 +971,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 @@ -977,7 +983,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 @@ -987,7 +995,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 @@ -997,7 +1005,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 Expand Up @@ -1154,7 +1162,9 @@ Name of a S3 bucket.
*`aws.s3_daily_storage.bucket.size.bytes`*::
+
--
type: scaled_float
type: long
format: bytes
The amount of data in bytes stored in a bucket.
Expand All @@ -1164,7 +1174,7 @@ The amount of data in bytes stored in a bucket.
*`aws.s3_daily_storage.number_of_objects`*::
+
--
type: scaled_float
type: long
The total number of objects stored in a bucket for all storage classes.
Expand Down Expand Up @@ -1261,7 +1271,9 @@ The number of Amazon S3 SELECT Object Content requests made for objects in an Am
*`aws.s3_request.requests.select_scanned.bytes`*::
+
--
type: scaled_float
type: long
format: bytes
The number of bytes of data scanned with Amazon S3 SELECT Object Content requests in an Amazon S3 bucket.
Expand All @@ -1271,7 +1283,9 @@ The number of bytes of data scanned with Amazon S3 SELECT Object Content request
*`aws.s3_request.requests.select_returned.bytes`*::
+
--
type: scaled_float
type: long
format: bytes
The number of bytes of data returned with Amazon S3 SELECT Object Content requests in an Amazon S3 bucket.
Expand All @@ -1291,7 +1305,9 @@ The number of HTTP requests that list the contents of a bucket.
*`aws.s3_request.downloaded.bytes`*::
+
--
type: scaled_float
type: long
format: bytes
The number bytes downloaded for requests made to an Amazon S3 bucket, where the response includes a body.
Expand All @@ -1301,7 +1317,9 @@ The number bytes downloaded for requests made to an Amazon S3 bucket, where the
*`aws.s3_request.uploaded.bytes`*::
+
--
type: scaled_float
type: long
format: bytes
The number bytes uploaded that contain a request body, made to an Amazon S3 bucket.
Expand Down Expand Up @@ -1333,6 +1351,8 @@ The number of HTTP 5xx server error status code requests made to an Amazon S3 bu
--
type: long
format: duration
The per-request time from the complete request being received by an Amazon S3 bucket to when the response starts to be returned.
Expand All @@ -1343,6 +1363,8 @@ The per-request time from the complete request being received by an Amazon S3 bu
--
type: long
format: duration
The elapsed per-request time from the first byte received to the last byte sent to an Amazon S3 bucket.
Expand All @@ -1360,6 +1382,8 @@ The elapsed per-request time from the first byte received to the last byte sent
--
type: long
format: duration
The approximate age of the oldest non-deleted message in the queue.
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.

Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
description: >
Name of a S3 bucket.
- name: bucket.size.bytes
type: scaled_float
type: long
format: bytes
description: >
The amount of data in bytes stored in a bucket.
- name: number_of_objects
type: scaled_float
type: long
description: >
The total number of objects stored in a bucket for all storage classes.
14 changes: 10 additions & 4 deletions x-pack/metricbeat/module/aws/s3_request/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,27 @@
description: >
The number of Amazon S3 SELECT Object Content requests made for objects in an Amazon S3 bucket.
- name: requests.select_scanned.bytes
type: scaled_float
type: long
format: bytes
description: >
The number of bytes of data scanned with Amazon S3 SELECT Object Content requests in an Amazon S3 bucket.
- name: requests.select_returned.bytes
type: scaled_float
type: long
format: bytes
description: >
The number of bytes of data returned with Amazon S3 SELECT Object Content requests in an Amazon S3 bucket.
- name: requests.list
type: long
description: >
The number of HTTP requests that list the contents of a bucket.
- name: downloaded.bytes
type: scaled_float
type: long
format: bytes
description: >
The number bytes downloaded for requests made to an Amazon S3 bucket, where the response includes a body.
- name: uploaded.bytes
type: scaled_float
type: long
format: bytes
description: >
The number bytes uploaded that contain a request body, made to an Amazon S3 bucket.
- name: errors.4xx
Expand All @@ -66,9 +70,11 @@
The number of HTTP 5xx server error status code requests made to an Amazon S3 bucket with a value of either 0 or 1.
- name: latency.first_byte.ms
type: long
format: duration
description: >
The per-request time from the complete request being received by an Amazon S3 bucket to when the response starts to be returned.
- name: latency.total_request.ms
type: long
format: duration
description: >
The elapsed per-request time from the first byte received to the last byte sent to an Amazon S3 bucket.
1 change: 1 addition & 0 deletions x-pack/metricbeat/module/aws/sqs/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
fields:
- name: oldest_message_age.sec
type: long
format: duration
description: >
The approximate age of the oldest non-deleted message in the queue.
- name: messages.delayed
Expand Down

0 comments on commit 38c5487

Please sign in to comment.