Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into kbn-xxx-inference-s…
Browse files Browse the repository at this point in the history
…tream-param
  • Loading branch information
pgayvallet committed Nov 4, 2024
2 parents 72d7c27 + 4a0a736 commit 7269617
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 26 deletions.
20 changes: 10 additions & 10 deletions .buildkite/scripts/steps/cloud/deploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"plan": {
"cluster_topology": [
{
"instance_configuration_id": "gcp.integrationsserver.1",
"instance_configuration_id": "gcp.integrationsserver.n2.68x32x45",
"zone_count": 1,
"size": {
"resource": "memory",
Expand All @@ -32,7 +32,7 @@
"cluster_topology": [
{
"zone_count": 1,
"instance_configuration_id": "gcp.coordinating.1",
"instance_configuration_id": "gcp.es.coordinating.n2.68x16x45",
"node_roles": [
"ingest",
"remote_cluster_client"
Expand All @@ -50,7 +50,7 @@
"data": "hot"
}
},
"instance_configuration_id": "gcp.data.highio.1",
"instance_configuration_id": "gcp.es.datahot.n2.68x32x45",
"node_roles": [
"master",
"ingest",
Expand All @@ -72,7 +72,7 @@
"data": "warm"
}
},
"instance_configuration_id": "gcp.data.highstorage.1",
"instance_configuration_id": "gcp.es.datawarm.n2.68x10x190",
"node_roles": [
"data_warm",
"remote_cluster_client"
Expand All @@ -90,7 +90,7 @@
"data": "cold"
}
},
"instance_configuration_id": "gcp.data.highstorage.1",
"instance_configuration_id": "gcp.es.datacold.n2.68x10x190",
"node_roles": [
"data_cold",
"remote_cluster_client"
Expand All @@ -108,7 +108,7 @@
"data": "frozen"
}
},
"instance_configuration_id": "gcp.es.datafrozen.n1.64x10x95",
"instance_configuration_id": "gcp.es.datafrozen.n2.68x10x90",
"node_roles": [
"data_frozen"
],
Expand All @@ -120,7 +120,7 @@
},
{
"zone_count": 1,
"instance_configuration_id": "gcp.master.1",
"instance_configuration_id": "gcp.es.master.n2.68x32x45",
"node_roles": [
"master",
"remote_cluster_client"
Expand All @@ -142,7 +142,7 @@
},
"autoscaling_tier_override": true,
"id": "ml",
"instance_configuration_id": "gcp.ml.1",
"instance_configuration_id": "gcp.es.ml.n2.68x32x45",
"node_roles": [
"ml",
"remote_cluster_client"
Expand All @@ -155,7 +155,7 @@
"enabled_built_in_plugins": []
},
"deployment_template": {
"id": "gcp-io-optimized-v2"
"id": "gcp-cpu-optimized"
}
},
"ref_id": "main-elasticsearch"
Expand All @@ -168,7 +168,7 @@
"plan": {
"cluster_topology": [
{
"instance_configuration_id": "gcp.kibana.1",
"instance_configuration_id": "gcp.kibana.n2.68x32x45",
"zone_count": 1,
"size": {
"value": 2048,
Expand Down
13 changes: 7 additions & 6 deletions docs/user/ml/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ information, refer to {ml-docs}/ml-limitations.html[{ml-cap}].

preview::[]

You can find the data drift view in **{ml-app}** > *{data-viz}* in {kib}.
You can find the data drift view in **{ml-app}** > *{data-viz}* in {kib} or by using
the <<kibana-navigation-search,global search field>>.
The data drift view shows you the differences in each field for two
different time ranges in a given {data-source}. The view helps you to visualize
the changes in your data over time and enables you to understand its behavior
Expand Down Expand Up @@ -167,7 +168,7 @@ It makes it easy to find and investigate causes of unusual spikes or drops by us
Examine the histogram chart of the log rates for a given {data-source}, and find the reason behind a particular change possibly in millions of log events across multiple fields and values.

You can find log rate analysis embedded in multiple applications.
In {kib}, you can find it under **{ml-app}** > **AIOps Labs** where you can select the {data-source} or saved search that you want to analyze.
In {kib}, you can find it under **{ml-app}** > **AIOps Labs** or by using the <<kibana-navigation-search,global search field>>. Here, you can select the {data-source} or saved search that you want to analyze.

[role="screenshot"]
image::user/ml/images/ml-log-rate-analysis-before.png[Log event histogram chart]
Expand Down Expand Up @@ -201,8 +202,8 @@ displays them together with a chart that shows the distribution of each category
and an example document that matches the category.
//end::log-pattern-analysis-intro[]

You can find log pattern analysis under **{ml-app}** > **AIOps Labs** where you
can select the {data-source} or saved search that you want to analyze, or in
You can find log pattern analysis under **{ml-app}** > **AIOps Labs** or by using the <<kibana-navigation-search,global search field>>.
Here, you can select the {data-source} or saved search that you want to analyze, or in
**Discover** as an available action for any text field.

[role="screenshot"]
Expand All @@ -226,8 +227,8 @@ Change point detection uses the
to detect distribution changes, trend changes, and other statistically
significant change points in a metric of your time series data.

You can find change point detection under **{ml-app}** > **AIOps Labs** where
you can select the {data-source} or saved search that you want to analyze.
You can find change point detection under **{ml-app}** > **AIOps Labs** or by using the <<kibana-navigation-search,global search field>>.
Here, you can select the {data-source} or saved search that you want to analyze.

[role="screenshot"]
image::user/ml/images/ml-change-point-detection.png[Change point detection UI]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ describe('TableListView', () => {
const updatedAtValues: Moment[] = [];

const updatedHits = hits.map(({ id, attributes, references }, i) => {
const updatedAt = new Date(new Date().setDate(new Date().getDate() - (7 + i)));
updatedAtValues.push(moment(updatedAt));
const updatedAt = moment().subtract(7 + i, 'days');
updatedAtValues.push(updatedAt);

return {
id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ export const ESQLMenuPopover: React.FC<ESQLMenuPopoverProps> = ({
},
{
id: 1,
initialFocusedItemIndex: 1,
title: i18n.translate('unifiedSearch.query.queryBar.esqlMenu.exampleQueries', {
defaultMessage: 'Recommended queries',
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import { EuiFlexGroup, EuiFlexItem, EuiLoadingLogo, EuiSpacer, EuiTitle } from '@elastic/eui';
import React from 'react';
import { useHistory, useLocation } from 'react-router-dom';
import { isLogsOnlySignal } from '../../../../utils/get_signal_type';
import { isMobileAgentName } from '../../../../../common/agent_name';
import { ApmServiceContextProvider } from '../../../../context/apm_service/apm_service_context';
import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context';
Expand Down Expand Up @@ -55,7 +54,7 @@ function TemplateWithContext({ title, children, selectedTab, searchBarOptions }:

const tabs = useTabs({ selectedTab });

const { agentName, serviceAgentStatus, serviceEntitySummary } = useApmServiceContext();
const { agentName, serviceAgentStatus } = useApmServiceContext();

const isPendingServiceAgent = !agentName && isPending(serviceAgentStatus);

Expand All @@ -76,9 +75,6 @@ function TemplateWithContext({ title, children, selectedTab, searchBarOptions }:
});
}

const hasLogsOnlySignal =
serviceEntitySummary?.dataStreamTypes && isLogsOnlySignal(serviceEntitySummary.dataStreamTypes);

return (
<ApmMainTemplate
pageHeader={{
Expand Down Expand Up @@ -119,7 +115,7 @@ function TemplateWithContext({ title, children, selectedTab, searchBarOptions }:
</EuiFlexGroup>
) : (
<>
{!hasLogsOnlySignal && <SearchBar {...searchBarOptions} />}
<SearchBar {...searchBarOptions} />
<ServiceAnomalyTimeseriesContextProvider>
{children}
</ServiceAnomalyTimeseriesContextProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const EntityStoreDashboardPanelsComponent = () => {

const { mutate: initRiskEngine } = useInitRiskEngineMutation();

const callouts = entityStore.errors.map((err, i) => (
const callouts = entityStore.errors.map((err) => (
<EuiCallOut
title={
<FormattedMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,21 @@ export const EntityStoreManagementPage = () => {
stopEntityEngineMutation.isLoading ||
deleteEntityEngineMutation.isLoading;

const callouts = entityStoreStatus.errors.map((error) => (
<EuiCallOut
title={
<FormattedMessage
id="xpack.securitySolution.entityAnalytics.entityStoreManagementPage.errors.title"
defaultMessage={'An error occurred during entity store resource initialization'}
/>
}
color="danger"
iconType="alert"
>
<p>{error.message}</p>
</EuiCallOut>
));

return (
<>
<EuiPageHeader
Expand Down Expand Up @@ -300,6 +315,39 @@ export const EntityStoreManagementPage = () => {
<FileUploadSection />
<EuiFlexItem grow={2}>
<EuiFlexGroup direction="column">
{initEntityEngineMutation.isError && (
<EuiCallOut
title={
<FormattedMessage
id="xpack.securitySolution.entityAnalytics.entityStoreManagementPage.errors.initErrorTitle"
defaultMessage={'There was a problem initializing the entity store'}
/>
}
color="danger"
iconType="alert"
>
<p>
{(initEntityEngineMutation.error as { body: { message: string } }).body.message}
</p>
</EuiCallOut>
)}
{deleteEntityEngineMutation.isError && (
<EuiCallOut
title={
<FormattedMessage
id="xpack.securitySolution.entityAnalytics.entityStoreManagementPage.errors.deleteErrorTitle"
defaultMessage={'There was a problem deleting the entity store'}
/>
}
color="danger"
iconType="alert"
>
<p>
{(deleteEntityEngineMutation.error as { body: { message: string } }).body.message}
</p>
</EuiCallOut>
)}
{callouts}
<WhatIsAssetCriticalityPanel />
{!isEntityStoreFeatureFlagDisabled && canDeleteEntityEngine && <ClearEntityDataPanel />}
</EuiFlexGroup>
Expand Down

0 comments on commit 7269617

Please sign in to comment.