Skip to content

Commit

Permalink
Fix nanocore sum for non default intervals on Kubernetes Overview Das…
Browse files Browse the repository at this point in the history
…hboard (elastic#180)

Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
  • Loading branch information
ChrsMark committed Jul 20, 2020
1 parent 543cf5d commit 6ca292d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,28 @@
"field": "kubernetes.container.cpu.usage.nanocores",
"id": "0d5c9221-2bf2-11e7-859b-f78b612cde28",
"type": "sum"
},
{
"field": "metricset.period",
"id": "8b346300-bf95-11ea-a07c-851701f0d645",
"type": "avg"
},
{
"id": "25ae6580-bf95-11ea-a07c-851701f0d645",
"script": "params.sum_nanocores / (params._interval / params.avg_period)",
"type": "calculation",
"variables": [
{
"field": "0d5c9221-2bf2-11e7-859b-f78b612cde28",
"id": "39e40aa0-bf95-11ea-a07c-851701f0d645",
"name": "sum_nanocores"
},
{
"field": "8b346300-bf95-11ea-a07c-851701f0d645",
"id": "85213600-bf95-11ea-a07c-851701f0d645",
"name": "avg_period"
}
]
}
],
"override_index_pattern": 0,
Expand Down
2 changes: 1 addition & 1 deletion packages/kubernetes/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: kubernetes
title: Kubernetes
version: 0.1.0
version: 0.1.1
license: basic
description: Kubernetes Integration
type: integration
Expand Down

0 comments on commit 6ca292d

Please sign in to comment.