Skip to content

Commit

Permalink
Fix 11975 - change Kubernetes container cpu cores fields to float (#1…
Browse files Browse the repository at this point in the history
…2476)

* Fix 11975 kubernetes cores fields data type long -> float (#11975)

kubernetes.container.cpu.limit.cores is now a float
kubernetes.container.cpu.request.cores is now a float
  • Loading branch information
easkay authored and Carlos Pérez-Aradros Herce committed Jun 7, 2019
1 parent b2c2bb0 commit 8502c79
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,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]
- kubernetes.container.cpu.limit.cores and kubernetes.container.cpu.requests.cores are now floats. {issue}11975[11975]

*Packetbeat*

Expand Down
4 changes: 2 additions & 2 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -13944,7 +13944,7 @@ Waiting (ContainerCreating, CrashLoopBackoff, ErrImagePull, ImagePullBackoff) or
*`kubernetes.container.cpu.limit.cores`*::
+
--
type: long
type: float
Container CPU cores limit
Expand All @@ -13954,7 +13954,7 @@ Container CPU cores limit
*`kubernetes.container.cpu.request.cores`*::
+
--
type: long
type: float
Container CPU requested cores
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/kubernetes/fields.go

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

4 changes: 2 additions & 2 deletions metricbeat/module/kubernetes/state_container/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
type: group
fields:
- name: limit.cores
type: long
type: float
description: >
Container CPU cores limit
- name: request.cores
type: long
type: float
description: >
Container CPU requested cores
- name: limit.nanocores
Expand Down

0 comments on commit 8502c79

Please sign in to comment.