Skip to content

Commit

Permalink
[Fleet] Namespace - Provide better descriptions and access to more in…
Browse files Browse the repository at this point in the history
…fo (#98779) (#99038)

Co-authored-by: Brandon Morelli <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Alejandro Fernández Gómez <[email protected]>
Co-authored-by: Brandon Morelli <[email protected]>
  • Loading branch information
3 people authored May 3, 2021
1 parent e70e0df commit 5bbe5e3
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
EuiCheckbox,
EuiCheckboxGroup,
EuiButton,
EuiLink,
} from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import { i18n } from '@kbn/i18n';
Expand Down Expand Up @@ -170,7 +171,20 @@ export const AgentPolicyForm: React.FunctionComponent<Props> = ({
description={
<FormattedMessage
id="xpack.fleet.agentPolicyForm.namespaceFieldDescription"
defaultMessage="Apply a default namespace to integrations that use this policy. Integrations can specify their own namespaces."
defaultMessage="Namespaces are a user-configurable arbitrary grouping that makes it easier to search for data and manage user permissions. A policy namespace is used to name its integration's data streams. {fleetUserGuide}."
values={{
fleetUserGuide: (
<EuiLink
href="https://www.elastic.co/guide/en/fleet/current/data-streams.html#data-streams-naming-scheme"
target="_blank"
>
{i18n.translate(
'xpack.fleet.agentPolicyForm.nameSpaceFieldDescription.fleetUserGuideLabel',
{ defaultMessage: 'Learn more' }
)}
</EuiLink>
),
}}
/>
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

import React, { useEffect, useState } from 'react';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';
import {
EuiFormRow,
Expand All @@ -17,6 +18,7 @@ import {
EuiDescribedFormGroup,
EuiFlexGroup,
EuiFlexItem,
EuiLink,
} from '@elastic/eui';

import type { AgentPolicy, PackageInfo, PackagePolicy, NewPackagePolicy } from '../../../types';
Expand Down Expand Up @@ -195,6 +197,25 @@ export const StepDefinePackagePolicy: React.FunctionComponent<{
defaultMessage="Namespace"
/>
}
helpText={
<FormattedMessage
id="xpack.fleet.createPackagePolicy.stepConfigure.packagePolicyNamespaceHelpLabel"
defaultMessage="Change the default namespace inherited from the selected Agent policy. This setting changes the name of the integration's data stream. {learnMore}."
values={{
learnMore: (
<EuiLink
href="https://www.elastic.co/guide/en/fleet/current/data-streams.html#data-streams-naming-scheme"
target="_blank"
>
{i18n.translate(
'xpack.fleet.createPackagePolicy.stepConfigure.packagePolicyNamespaceHelpLearnMoreLabel',
{ defaultMessage: 'Learn more' }
)}
</EuiLink>
),
}}
/>
}
>
<EuiComboBox
noSuggestions
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -8238,7 +8238,6 @@
"xpack.fleet.agentPolicyForm.nameFieldLabel": "名前",
"xpack.fleet.agentPolicyForm.nameFieldPlaceholder": "名前を選択",
"xpack.fleet.agentPolicyForm.nameRequiredErrorMessage": "エージェントポリシー名が必要です。",
"xpack.fleet.agentPolicyForm.namespaceFieldDescription": "このポリシーを使用する統合にデフォルトの名前空間を適用します。統合はその独自の名前空間を指定できます。",
"xpack.fleet.agentPolicyForm.namespaceFieldLabel": "デフォルト名前空間",
"xpack.fleet.agentPolicyForm.systemMonitoringFieldLabel": "システム監視",
"xpack.fleet.agentPolicyForm.systemMonitoringText": "システムメトリックを収集",
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -8313,7 +8313,6 @@
"xpack.fleet.agentPolicyForm.nameFieldLabel": "名称",
"xpack.fleet.agentPolicyForm.nameFieldPlaceholder": "选择名称",
"xpack.fleet.agentPolicyForm.nameRequiredErrorMessage": "“代理策略名称”必填。",
"xpack.fleet.agentPolicyForm.namespaceFieldDescription": "将默认命名空间应用于使用此策略的集成。集成可以指定自己的命名空间。",
"xpack.fleet.agentPolicyForm.namespaceFieldLabel": "默认命名空间",
"xpack.fleet.agentPolicyForm.systemMonitoringFieldLabel": "系统监测",
"xpack.fleet.agentPolicyForm.systemMonitoringText": "收集系统指标",
Expand Down

0 comments on commit 5bbe5e3

Please sign in to comment.