Skip to content

Commit

Permalink
Cherry-pick elastic#12476 to 7.2: Fix 11975 - change Kubernetes conta…
Browse files Browse the repository at this point in the history
…iner cpu cores fields to float (elastic#12609)

* Fix 11975 - change Kubernetes container cpu cores fields to float (elastic#12476)

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

kubernetes.container.cpu.limit.cores is now a float
kubernetes.container.cpu.request.cores is now a float

(cherry picked from commit d8eb8e8)

* Update CHANGELOG.next.asciidoc
  • Loading branch information
Carlos Pérez-Aradros Herce authored Jun 20, 2019
1 parent 2233e55 commit fcba692
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ https://github.com/elastic/beats/compare/v7.2.0...7.2[Check the HEAD diff]

*Metricbeat*

- kubernetes.container.cpu.limit.cores and kubernetes.container.cpu.requests.cores are now floats. {issue}11975[11975]

*Packetbeat*

*Winlogbeat*
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -13867,7 +13867,7 @@ Waiting (ContainerCreating, CrashLoopBackoff, ErrImagePull, ImagePullBackoff) or
*`kubernetes.container.cpu.limit.cores`*::
+
--
type: long
type: float
Container CPU cores limit
Expand All @@ -13877,7 +13877,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 fcba692

Please sign in to comment.