-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into lens/timeshift-previous
- Loading branch information
Showing
26 changed files
with
336 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
.../components/shared/exploratory_view/configurations/constants/field_names/infra_metrics.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const SYSTEM_CPU_PERCENTAGE_FIELD = 'system.cpu.total.norm.pct'; | ||
export const SYSTEM_MEMORY_PERCENTAGE_FIELD = 'system.memory.used.pct'; | ||
export const DOCKER_CPU_PERCENTAGE_FIELD = 'docker.cpu.total.pct'; | ||
export const K8S_POD_CPU_PERCENTAGE_FIELD = 'kubernetes.pod.cpu.usage.node.pct'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
...y/public/components/shared/exploratory_view/configurations/infra_metrics/field_formats.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { FieldFormat } from '../../types'; | ||
import { | ||
SYSTEM_CPU_PERCENTAGE_FIELD, | ||
DOCKER_CPU_PERCENTAGE_FIELD, | ||
K8S_POD_CPU_PERCENTAGE_FIELD, | ||
SYSTEM_MEMORY_PERCENTAGE_FIELD, | ||
} from '../constants/field_names/infra_metrics'; | ||
|
||
export const infraMetricsFieldFormats: FieldFormat[] = [ | ||
{ | ||
field: SYSTEM_CPU_PERCENTAGE_FIELD, | ||
format: { | ||
id: 'percent', | ||
params: {}, | ||
}, | ||
}, | ||
{ | ||
field: DOCKER_CPU_PERCENTAGE_FIELD, | ||
format: { | ||
id: 'percent', | ||
params: {}, | ||
}, | ||
}, | ||
{ | ||
field: K8S_POD_CPU_PERCENTAGE_FIELD, | ||
format: { | ||
id: 'percent', | ||
params: {}, | ||
}, | ||
}, | ||
{ | ||
field: SYSTEM_MEMORY_PERCENTAGE_FIELD, | ||
format: { | ||
id: 'percent', | ||
params: {}, | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.