Skip to content

Commit 2848ad7

Browse files
Fix nanocore sum for non default intervals on Kubernetes Overview Dashboard (#19675) (#19979)
* Fix nanocore sum for non default intervals on Kubernetes Overview Dashboard The Kibana visualization CPU usage by node [Metricbeat Kubernetes] ECS did not account for x-axis scaling. In case the scaling aligned with the value from metricset.period it was correct. In every other case, the sum was not correctly calculated as it did not take into account how big the buckets in the visualizations would be. * Add changelog entry for k8s dashboard node usage (cherry picked from commit 4dcbde3) Co-authored-by: Jasper Bernhardt <[email protected]>
1 parent 03b5b60 commit 2848ad7

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

CHANGELOG.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ https://github.com/elastic/beats/compare/v7.5.0...v7.5.1[View commits]
3333
- Fix ListMetrics pagination in aws module. {issue}14926[14926] {pull}14942[14942]
3434
- Fix CPU count in docker/cpu in cases where no `online_cpus` are reported {pull}15070[15070]
3535
- Add domain state to kvm module {pull}17673[17673]
36+
- Fix Kubernetes Overview Dashboard to correctly display non 10s intervals for node usage {pull}19675[19675]
3637

3738
[[release-notes-7.5.0]]
3839
=== Beats version 7.5.0

metricbeat/module/kubernetes/_meta/kibana/7/dashboard/Metricbeat-kubernetes-overview.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,28 @@
126126
"field": "kubernetes.container.cpu.usage.nanocores",
127127
"id": "0d5c9221-2bf2-11e7-859b-f78b612cde28",
128128
"type": "sum"
129+
},
130+
{
131+
"id": "8b346300-bf95-11ea-a07c-851701f0d645",
132+
"type": "avg",
133+
"field": "metricset.period"
134+
},
135+
{
136+
"id": "25ae6580-bf95-11ea-a07c-851701f0d645",
137+
"type": "calculation",
138+
"variables": [
139+
{
140+
"id": "39e40aa0-bf95-11ea-a07c-851701f0d645",
141+
"name": "sum_nanocores",
142+
"field": "0d5c9221-2bf2-11e7-859b-f78b612cde28"
143+
},
144+
{
145+
"id": "85213600-bf95-11ea-a07c-851701f0d645",
146+
"name": "avg_period",
147+
"field": "8b346300-bf95-11ea-a07c-851701f0d645"
148+
}
149+
],
150+
"script": "params.sum_nanocores / (params._interval / params.avg_period)"
129151
}
130152
],
131153
"override_index_pattern": 0,

0 commit comments

Comments
 (0)