mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[ML] Fix JVM heap size position on the ML memory overview chart (#132888)
This commit is contained in:
parent
003474c5b4
commit
1d0e3e72b4
2 changed files with 7 additions and 7 deletions
|
@ -14,6 +14,7 @@ import {
|
|||
startWith,
|
||||
tap,
|
||||
debounceTime,
|
||||
filter,
|
||||
} from 'rxjs/operators';
|
||||
import { isEqual, sortBy, uniq } from 'lodash';
|
||||
import type { TimefilterContract } from '@kbn/data-plugin/public';
|
||||
|
@ -731,8 +732,7 @@ export class AnomalyTimelineStateService extends StateService {
|
|||
|
||||
public getSwimLaneBucketInterval$(): Observable<TimeBucketsInterval> {
|
||||
return this._swimLaneBucketInterval$.pipe(
|
||||
// @ts-ignore
|
||||
skipWhile((v) => !v),
|
||||
filter((v): v is TimeBucketsInterval => !v),
|
||||
distinctUntilChanged((prev, curr) => {
|
||||
return prev.asSeconds() === curr.asSeconds();
|
||||
})
|
||||
|
|
|
@ -70,11 +70,6 @@ export const MemoryPreviewChart: FC<MemoryPreviewChartProps> = ({ memoryOverview
|
|||
);
|
||||
|
||||
const chartData = [
|
||||
{
|
||||
x: 0,
|
||||
y: memoryOverview.machine_memory.jvm,
|
||||
g: groups.jvm.name,
|
||||
},
|
||||
{
|
||||
x: 0,
|
||||
y: memoryOverview.trained_models.total,
|
||||
|
@ -100,6 +95,11 @@ export const MemoryPreviewChart: FC<MemoryPreviewChartProps> = ({ memoryOverview
|
|||
memoryOverview.anomaly_detection.total,
|
||||
g: groups.available.name,
|
||||
},
|
||||
{
|
||||
x: 0,
|
||||
y: memoryOverview.machine_memory.jvm,
|
||||
g: groups.jvm.name,
|
||||
},
|
||||
];
|
||||
|
||||
const barSeriesColorAccessor: SeriesColorAccessor = ({ specId, yAccessor, splitAccessors }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue