Skip to content

Commit 1b2613e

Browse files
authored
Change type from scaled_float to long and add format (#11982)
* Change type from scaled_float to long and add format
1 parent bbf4156 commit 1b2613e

File tree

7 files changed

+74
-37
lines changed

7 files changed

+74
-37
lines changed

CHANGELOG.next.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
3636
- Add new option `OpMultiplyBuckets` to scale histogram buckets to avoid decimal points in final events {pull}10994[10994]
3737
- 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]
3838
- system/raid metricset now uses /sys/block instead of /proc/mdstat for data. {pull}11613[11613]
39+
- Change some field type from scaled_float to long in aws module. {pull}11982[11982]
3940

4041
*Packetbeat*
4142

metricbeat/docs/fields.asciidoc

Lines changed: 42 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ The percentage of allocated EC2 compute units that are currently in use on the i
887887
*`aws.ec2.cpu.credit_usage`*::
888888
+
889889
--
890-
type: scaled_float
890+
type: long
891891
892892
The number of CPU credits spent by the instance for CPU utilization.
893893
@@ -897,7 +897,7 @@ The number of CPU credits spent by the instance for CPU utilization.
897897
*`aws.ec2.cpu.credit_balance`*::
898898
+
899899
--
900-
type: scaled_float
900+
type: long
901901
902902
The number of earned CPU credits that an instance has accrued since it was launched or started.
903903
@@ -907,7 +907,7 @@ The number of earned CPU credits that an instance has accrued since it was launc
907907
*`aws.ec2.cpu.surplus_credit_balance`*::
908908
+
909909
--
910-
type: scaled_float
910+
type: long
911911
912912
The number of surplus credits that have been spent by an unlimited instance when its CPUCreditBalance value is zero.
913913
@@ -917,7 +917,7 @@ The number of surplus credits that have been spent by an unlimited instance when
917917
*`aws.ec2.cpu.surplus_credits_charged`*::
918918
+
919919
--
920-
type: scaled_float
920+
type: long
921921
922922
The number of spent surplus credits that are not paid down by earned CPU credits, and which thus incur an additional charge.
923923
@@ -927,7 +927,7 @@ The number of spent surplus credits that are not paid down by earned CPU credits
927927
*`aws.ec2.network.in.packets`*::
928928
+
929929
--
930-
type: scaled_float
930+
type: long
931931
932932
The number of packets received on all network interfaces by the instance.
933933
@@ -937,7 +937,7 @@ The number of packets received on all network interfaces by the instance.
937937
*`aws.ec2.network.out.packets`*::
938938
+
939939
--
940-
type: scaled_float
940+
type: long
941941
942942
The number of packets sent out on all network interfaces by the instance.
943943
@@ -947,7 +947,9 @@ The number of packets sent out on all network interfaces by the instance.
947947
*`aws.ec2.network.in.bytes`*::
948948
+
949949
--
950-
type: scaled_float
950+
type: long
951+
952+
format: bytes
951953
952954
The number of bytes received on all network interfaces by the instance.
953955
@@ -957,7 +959,9 @@ The number of bytes received on all network interfaces by the instance.
957959
*`aws.ec2.network.out.bytes`*::
958960
+
959961
--
960-
type: scaled_float
962+
type: long
963+
964+
format: bytes
961965
962966
The number of bytes sent out on all network interfaces by the instance.
963967
@@ -967,7 +971,9 @@ The number of bytes sent out on all network interfaces by the instance.
967971
*`aws.ec2.diskio.read.bytes`*::
968972
+
969973
--
970-
type: scaled_float
974+
type: long
975+
976+
format: bytes
971977
972978
Bytes read from all instance store volumes available to the instance.
973979
@@ -977,7 +983,9 @@ Bytes read from all instance store volumes available to the instance.
977983
*`aws.ec2.diskio.write.bytes`*::
978984
+
979985
--
980-
type: scaled_float
986+
type: long
987+
988+
format: bytes
981989
982990
Bytes written to all instance store volumes available to the instance.
983991
@@ -987,7 +995,7 @@ Bytes written to all instance store volumes available to the instance.
987995
*`aws.ec2.diskio.read.ops`*::
988996
+
989997
--
990-
type: scaled_float
998+
type: long
991999
9921000
Completed read operations from all instance store volumes available to the instance in a specified period of time.
9931001
@@ -997,7 +1005,7 @@ Completed read operations from all instance store volumes available to the insta
9971005
*`aws.ec2.diskio.write.ops`*::
9981006
+
9991007
--
1000-
type: scaled_float
1008+
type: long
10011009
10021010
Completed write operations to all instance store volumes available to the instance in a specified period of time.
10031011
@@ -1154,7 +1162,9 @@ Name of a S3 bucket.
11541162
*`aws.s3_daily_storage.bucket.size.bytes`*::
11551163
+
11561164
--
1157-
type: scaled_float
1165+
type: long
1166+
1167+
format: bytes
11581168
11591169
The amount of data in bytes stored in a bucket.
11601170
@@ -1164,7 +1174,7 @@ The amount of data in bytes stored in a bucket.
11641174
*`aws.s3_daily_storage.number_of_objects`*::
11651175
+
11661176
--
1167-
type: scaled_float
1177+
type: long
11681178
11691179
The total number of objects stored in a bucket for all storage classes.
11701180
@@ -1261,7 +1271,9 @@ The number of Amazon S3 SELECT Object Content requests made for objects in an Am
12611271
*`aws.s3_request.requests.select_scanned.bytes`*::
12621272
+
12631273
--
1264-
type: scaled_float
1274+
type: long
1275+
1276+
format: bytes
12651277
12661278
The number of bytes of data scanned with Amazon S3 SELECT Object Content requests in an Amazon S3 bucket.
12671279
@@ -1271,7 +1283,9 @@ The number of bytes of data scanned with Amazon S3 SELECT Object Content request
12711283
*`aws.s3_request.requests.select_returned.bytes`*::
12721284
+
12731285
--
1274-
type: scaled_float
1286+
type: long
1287+
1288+
format: bytes
12751289
12761290
The number of bytes of data returned with Amazon S3 SELECT Object Content requests in an Amazon S3 bucket.
12771291
@@ -1291,7 +1305,9 @@ The number of HTTP requests that list the contents of a bucket.
12911305
*`aws.s3_request.downloaded.bytes`*::
12921306
+
12931307
--
1294-
type: scaled_float
1308+
type: long
1309+
1310+
format: bytes
12951311
12961312
The number bytes downloaded for requests made to an Amazon S3 bucket, where the response includes a body.
12971313
@@ -1301,7 +1317,9 @@ The number bytes downloaded for requests made to an Amazon S3 bucket, where the
13011317
*`aws.s3_request.uploaded.bytes`*::
13021318
+
13031319
--
1304-
type: scaled_float
1320+
type: long
1321+
1322+
format: bytes
13051323
13061324
The number bytes uploaded that contain a request body, made to an Amazon S3 bucket.
13071325
@@ -1333,6 +1351,8 @@ The number of HTTP 5xx server error status code requests made to an Amazon S3 bu
13331351
--
13341352
type: long
13351353
1354+
format: duration
1355+
13361356
The per-request time from the complete request being received by an Amazon S3 bucket to when the response starts to be returned.
13371357
13381358
@@ -1343,6 +1363,8 @@ The per-request time from the complete request being received by an Amazon S3 bu
13431363
--
13441364
type: long
13451365
1366+
format: duration
1367+
13461368
The elapsed per-request time from the first byte received to the last byte sent to an Amazon S3 bucket.
13471369
13481370
@@ -1360,6 +1382,8 @@ The elapsed per-request time from the first byte received to the last byte sent
13601382
--
13611383
type: long
13621384
1385+
format: duration
1386+
13631387
The approximate age of the oldest non-deleted message in the queue.
13641388
13651389

x-pack/metricbeat/module/aws/ec2/_meta/fields.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,51 +9,55 @@
99
description: >
1010
The percentage of allocated EC2 compute units that are currently in use on the instance.
1111
- name: cpu.credit_usage
12-
type: scaled_float
12+
type: long
1313
description: >
1414
The number of CPU credits spent by the instance for CPU utilization.
1515
- name: cpu.credit_balance
16-
type: scaled_float
16+
type: long
1717
description: >
1818
The number of earned CPU credits that an instance has accrued since it was launched or started.
1919
- name: cpu.surplus_credit_balance
20-
type: scaled_float
20+
type: long
2121
description: >
2222
The number of surplus credits that have been spent by an unlimited instance when its CPUCreditBalance value is zero.
2323
- name: cpu.surplus_credits_charged
24-
type: scaled_float
24+
type: long
2525
description: >
2626
The number of spent surplus credits that are not paid down by earned CPU credits, and which thus incur an additional charge.
2727
- name: network.in.packets
28-
type: scaled_float
28+
type: long
2929
description: >
3030
The number of packets received on all network interfaces by the instance.
3131
- name: network.out.packets
32-
type: scaled_float
32+
type: long
3333
description: >
3434
The number of packets sent out on all network interfaces by the instance.
3535
- name: network.in.bytes
36-
type: scaled_float
36+
type: long
37+
format: bytes
3738
description: >
3839
The number of bytes received on all network interfaces by the instance.
3940
- name: network.out.bytes
40-
type: scaled_float
41+
type: long
42+
format: bytes
4143
description: >
4244
The number of bytes sent out on all network interfaces by the instance.
4345
- name: diskio.read.bytes
44-
type: scaled_float
46+
type: long
47+
format: bytes
4548
description: >
4649
Bytes read from all instance store volumes available to the instance.
4750
- name: diskio.write.bytes
48-
type: scaled_float
51+
type: long
52+
format: bytes
4953
description: >
5054
Bytes written to all instance store volumes available to the instance.
5155
- name: diskio.read.ops
52-
type: scaled_float
56+
type: long
5357
description: >
5458
Completed read operations from all instance store volumes available to the instance in a specified period of time.
5559
- name: diskio.write.ops
56-
type: scaled_float
60+
type: long
5761
description: >
5862
Completed write operations to all instance store volumes available to the instance in a specified period of time.
5963
- name: status.check_failed

x-pack/metricbeat/module/aws/fields.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/metricbeat/module/aws/s3_daily_storage/_meta/fields.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
description: >
1010
Name of a S3 bucket.
1111
- name: bucket.size.bytes
12-
type: scaled_float
12+
type: long
13+
format: bytes
1314
description: >
1415
The amount of data in bytes stored in a bucket.
1516
- name: number_of_objects
16-
type: scaled_float
17+
type: long
1718
description: >
1819
The total number of objects stored in a bucket for all storage classes.

x-pack/metricbeat/module/aws/s3_request/_meta/fields.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,27 @@
3737
description: >
3838
The number of Amazon S3 SELECT Object Content requests made for objects in an Amazon S3 bucket.
3939
- name: requests.select_scanned.bytes
40-
type: scaled_float
40+
type: long
41+
format: bytes
4142
description: >
4243
The number of bytes of data scanned with Amazon S3 SELECT Object Content requests in an Amazon S3 bucket.
4344
- name: requests.select_returned.bytes
44-
type: scaled_float
45+
type: long
46+
format: bytes
4547
description: >
4648
The number of bytes of data returned with Amazon S3 SELECT Object Content requests in an Amazon S3 bucket.
4749
- name: requests.list
4850
type: long
4951
description: >
5052
The number of HTTP requests that list the contents of a bucket.
5153
- name: downloaded.bytes
52-
type: scaled_float
54+
type: long
55+
format: bytes
5356
description: >
5457
The number bytes downloaded for requests made to an Amazon S3 bucket, where the response includes a body.
5558
- name: uploaded.bytes
56-
type: scaled_float
59+
type: long
60+
format: bytes
5761
description: >
5862
The number bytes uploaded that contain a request body, made to an Amazon S3 bucket.
5963
- name: errors.4xx
@@ -66,9 +70,11 @@
6670
The number of HTTP 5xx server error status code requests made to an Amazon S3 bucket with a value of either 0 or 1.
6771
- name: latency.first_byte.ms
6872
type: long
73+
format: duration
6974
description: >
7075
The per-request time from the complete request being received by an Amazon S3 bucket to when the response starts to be returned.
7176
- name: latency.total_request.ms
7277
type: long
78+
format: duration
7379
description: >
7480
The elapsed per-request time from the first byte received to the last byte sent to an Amazon S3 bucket.

x-pack/metricbeat/module/aws/sqs/_meta/fields.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
fields:
77
- name: oldest_message_age.sec
88
type: long
9+
format: duration
910
description: >
1011
The approximate age of the oldest non-deleted message in the queue.
1112
- name: messages.delayed

0 commit comments

Comments
 (0)