docs-kibana-settings
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<!-- Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
or more contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright
ownership. Elasticsearch B.V. licenses this file to you under
the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License. -->
<!-- Elasticsearch B.V. 的版权所有者,并根据一项或多项贡献者许可协议授权给 Elasticsearch B.V.。有关版权归属的更多信息,请参阅随本作品分发的 NOTICE 文件。Elasticsearch B.V. 根据 Apache License, Version 2.0(“License”)向您许可本文件;除非遵守 License,否则您不得使用本文件。您可以在以下位置获取 License 副本:
http://www.apache.org/licenses/LICENSE-2.0
除非适用法律或另有书面协议,否则本软件按“AS IS”基础分发,不附带任何明示或暗示的担保。请参阅 License,了解适用于本软件的具体权限和限制。 -->
Kibana settings docs
Kibana 设置文档
Work in the Kibana clone. Paths below are relative to .
elastic/kibanaDocument every user-facing setting and Advanced Settings () entry in YAML. Do not write the reference as freeform Markdown.
kibana.ymluiSettings{settings}Schema, , description style, the field, gated notes, and lifecycle history live in docs-builder: automated settings and settings-with-applies-example.yml.
applies_todefaultThis YAML does not follow the usual lifecycle-symmetry rule. Read the settings page, not that skill.
docs-applies-to-taggingImplementation tutorials stay in and . This skill covers the docs YAML only.
docs/extend/tutorials/configuring-your-plugin.mddocs/extend/tutorials/ui-settings.md在 Kibana 克隆仓库中工作。以下路径相对于 。
elastic/kibana在 YAML 中记录每个面向用户的 设置和高级设置()条目。不要以自由格式的 Markdown 编写参考文档。
{settings}kibana.ymluiSettingsSchema、、描述风格、 字段、门控说明和生命周期历史均由 docs-builder 定义:自动化设置 和 settings-with-applies-example.yml。
applies_todefault此 YAML 不遵循常见的 生命周期对称规则。请阅读设置页面,而不是该 skill。
docs-applies-to-tagging实现教程仍保留在 和 。本 skill 仅涵盖文档 YAML。
docs/extend/tutorials/configuring-your-plugin.mddocs/extend/tutorials/ui-settings.mdClassify
分类
| User changes it in | Code signal | Docs YAML |
|---|---|---|
| Plugin | |
| Stack Management → Advanced Settings → Space Settings | | |
| Advanced Settings → Global Settings | | |
If the PR adds both a config-schema field and a registration, document both. They are different settings.
uiSettingsA setting can exist in both places only when uses to lock an Advanced Settings key. Document the key in the Advanced Settings YAML. Document itself in general settings YAML if that key changed.
kibana.ymluiSettings.overridesuiSettingsuiSettings.overridesDo not document a key in the Advanced Settings YAML. Do not document a key in configuration-reference YAML.
kibana.ymluiSettings| 用户更改位置 | 代码标识 | 文档 YAML |
|---|---|---|
| 插件 | |
| Stack Management → Advanced Settings → Space Settings | | |
| Advanced Settings → Global Settings | | |
如果 PR 同时添加了 config-schema 字段和 注册项,则两者都要记录。它们是不同的设置。
uiSettings只有当 使用 锁定某个高级设置键时,设置才可以同时出现在这两个位置。在高级设置 YAML 中记录该 键。如果 本身发生变化,请在通用设置 YAML 中记录它。
kibana.ymluiSettings.overridesuiSettingsuiSettings.overrides不要在高级设置 YAML 中记录 键。不要在 configuration-reference YAML 中记录 键。
kibana.ymluiSettingsWorkflow
工作流
Task progress:
- [ ] 1. Classify kibana.yml vs space vs global
- [ ] 2. Grep docs/reference and {settings} includes for the collection
- [ ] 3. Read the registration for key, type, default, category, and availability. Use the merge base if this branch removes the setting
- [ ] 4. Copy the nearest valid sibling
- [ ] 5. Tag applies_to from the docs-builder settings page
- [ ] 6. Check kibana.yml ech against the Cloud user-settings allowlist
- [ ] 7. Preview the Supported on line
- [ ] 8. If users need instructions, open a docs-content issue or PRTask progress:
- [ ] 1. Classify kibana.yml vs space vs global
- [ ] 2. Grep docs/reference and {settings} includes for the collection
- [ ] 3. Read the registration for key, type, default, category, and availability. Use the merge base if this branch removes the setting
- [ ] 4. Copy the nearest valid sibling
- [ ] 5. Tag applies_to from the docs-builder settings page
- [ ] 6. Check kibana.yml ech against the Cloud user-settings allowlist
- [ ] 7. Preview the Supported on line
- [ ] 8. If users need instructions, open a docs-content issue or PRFind the YAML file
查找 YAML 文件
bash
git grep -n -- '<prefix-or-key>' HEAD -- docs/referenceIf a matching group already exists, add the entry there. Match the surrounding entries.
Resolve from the plugin . plus schema field is .
configPathkibana.jsonc["xpack", "spaces"]maxSpacesxpack.spaces.maxSpacesMost edits stay in an existing YAML file. The host file already includes it with . Create a new YAML plus host Markdown only when no file documents that prefix:
.md{settings}- Add with
docs/reference/configuration-reference/<area>-settings.mdpointing at the new YAML.{settings} - Add the page under →
docs/reference/toc.yml.configuration-reference.md - Reporting settings already split across several YAML files included from . Add to the matching include, not a new page.
reporting-settings.md
Do not invent an Advanced Settings name. Place the entry in the group that matches in code. If is omitted, the setting lands in General in the UI. If the UI adds a new category, add a matching with an . Keep order close to the UI.
groupcategorycategorygroupidDo not add YAML for internal flags, test-only config, or a rename that a documented deprecation already covers.
bash
git grep -n -- '<prefix-or-key>' HEAD -- docs/reference如果已有匹配的分组,则在其中添加条目。保持与周围条目一致。
从插件的 解析 。 与 Schema 字段 对应 。
kibana.jsoncconfigPath["xpack", "spaces"]maxSpacesxpack.spaces.maxSpaces大多数修改都应保留在现有 YAML 文件中。宿主 文件已经通过 引入该文件。只有在没有文件记录此前缀时,才创建新的 YAML 和宿主 Markdown:
.md{settings}- 添加 ,其中
docs/reference/configuration-reference/<area>-settings.md指向新的 YAML。{settings} - 在 →
docs/reference/toc.yml下添加页面。configuration-reference.md - 报告设置已经拆分到多个 YAML 文件中,并由 引入。请添加到匹配的 include 中,不要创建新页面。
reporting-settings.md
不要臆造高级设置的 名称。将条目放入与代码中 匹配的分组。如果省略 ,该设置会显示在 UI 的 General 中。如果 UI 添加了新类别,请添加带有 的匹配 。顺序应尽量与 UI 保持一致。
groupcategorycategoryidgroup不要为内部标志、仅用于测试的配置或已有文档弃用说明涵盖的重命名添加 YAML。
Verify against source
对照源代码验证
Do not copy defaults, types, or availability from the issue body or PR title.
If this branch adds or changes the setting, read the implementation on this branch. If this branch removes the setting, grep the PR merge base. HEAD no longer has the registration. Keep the existing YAML entry and follow the docs-builder settings page for . If the setting is not part of this branch, read Elastic . If is your fork, fetch . If is , fetch .
removedmainoriginupstream/mainoriginelastic/kibanaorigin/mainbash
git grep -n -- '<setting.key>' HEAD -- '*.ts' '*.tsx'For a removal, recover the registration from the merge base against the same main ref you fetched above.
If is your fork:
originbash
git grep -n -- '<setting.key>' "$(git merge-base HEAD upstream/main)" -- '*.ts' '*.tsx'If is :
originelastic/kibanabash
git grep -n -- '<setting.key>' "$(git merge-base HEAD origin/main)" -- '*.ts' '*.tsx'| Claim | kibana.yml source | Advanced Settings source |
|---|---|---|
| Key | | Object key in |
| Default | | |
| Type | Schema type | |
| Options | | |
| Availability | | Serverless allowlists and |
| UI category / group | n/a | |
The value must match the runtime key at HEAD, or the merge-base key when this branch removes the setting. Quote keys that contain a colon, for example . The i18n string is the UI label. It is not the YAML key.
setting"dateFormat:tz"namesettingCopy the nearest sibling. Change only what this setting needs. Include and when the source defines them. Copy the term the surrounding file already uses. Include when the generated slug would collide or stay unreadable.
datatypedefaultdatatypeid不要从 issue 正文或 PR 标题复制默认值、类型或可用性。
如果此分支添加或修改了设置,请阅读此分支上的实现。如果此分支删除了设置,请在 PR 的 merge base 中搜索。HEAD 中已不再包含注册项。保留现有 YAML 条目,并遵循 docs-builder 设置页面中关于 的规则。如果设置不属于此分支,请阅读 Elastic 。如果 是你的 fork,请 fetch 。如果 是 ,请 fetch 。
removedmainoriginupstream/mainoriginelastic/kibanaorigin/mainbash
git grep -n -- '<setting.key>' HEAD -- '*.ts' '*.tsx'对于删除的设置,请根据上面获取的同一 main 引用,从 merge base 中恢复注册项。
如果 是你的 fork:
originbash
git grep -n -- '<setting.key>' "$(git merge-base HEAD upstream/main)" -- '*.ts' '*.tsx'如果 是 :
originelastic/kibanabash
git grep -n -- '<setting.key>' "$(git merge-base HEAD origin/main)" -- '*.ts' '*.tsx'| 声明 | kibana.yml 来源 | 高级设置来源 |
|---|---|---|
| 键 | | |
| 默认值 | | |
| 类型 | Schema 类型 | |
| 选项 | | |
| 可用性 | | Serverless 允许列表以及 |
| UI 类别/分组 | 不适用 | |
setting"dateFormat:tz"namesetting复制最接近的同级条目。仅修改此设置所需的内容。当来源定义时,包含 和 。复制周边文件已经使用的 术语。当生成的 slug 会冲突或仍难以理解时,包含 。
datatypedefaultdatatypeidapplies_to lookups
applies_to
查询
applies_toRead the docs-builder settings page, then fill Kibana-only values from source:
kibana.yml: grep the Elastic Cloud Hosted user-settings allowlist in a localechclone, underelastic/cloud. Writescala-services/adminconsole/src/main/resources/settings/kibana/if the key is listed. Writeech: gaif it is not. Do not useech: unavailablefor this. That CLI only lists Kibana config keys. It does not read the Cloud allowlist. Do not infer support from the published Cloud settings page. That page is generated from this YAML.node scripts/check_kibana_settings.js- Advanced Settings : those keys are not on the Cloud user-settings allowlist. Follow the docs-builder deployment keys. The allowlist grep is for
echonly.kibana.yml - If Elastic Cloud Hosted should list the setting, include the YAML from with
docs/reference/cloud/elastic-cloud-kibana-settings.md. That filter shows a setting only when the entry has:deployment: ech.ech: ga - Advanced Settings : start at
serverless. If the ID is there, writesrc/platform/packages/shared/serverless/settings/common/index.ts. If it is not, grepserverless: ga,observability_project,security_project, andsearch_projectin that folder. Ignorevectordb_project. Follow each allowlist's imports to resolve the constant to the runtime key, including IDs exported from packages other thanworkplace_ai_project. Mapkbn-management/settings/setting_idstoobservability_project,observabilitytosecurity_project,securitytosearch_project, andelasticsearchtovectordb_project. If the ID is only on some of those four lists, nest those keys. If it is on none, writevectordb.serverless: unavailable kibana.yml: useserverlessorofferingBasedSchema. Write a scalarschema.contextRef('serverless')orserverless: ga.serverless: unavailable
先阅读 docs-builder 设置页面,然后从源代码填充 Kibana 专属值:
kibana.yml: 在本地ech克隆仓库中搜索 Elastic Cloud Hosted 用户设置允许列表,路径为elastic/cloud。如果键位于列表中,写入scala-services/adminconsole/src/main/resources/settings/kibana/;如果不在,则写入ech: ga。不要使用ech: unavailable。该 CLI 只列出 Kibana 配置键,不读取 Cloud 允许列表。不要根据已发布的 Cloud 设置页面推断支持情况,因为该页面由此 YAML 生成。node scripts/check_kibana_settings.js- 高级设置 : 这些键不在 Cloud 用户设置允许列表中。请遵循 docs-builder 的 deployment keys。允许列表搜索仅适用于
ech。kibana.yml - 如果 Elastic Cloud Hosted 应列出该设置,请从 引入带有
docs/reference/cloud/elastic-cloud-kibana-settings.md的 YAML。该过滤器仅在条目具有:deployment: ech时显示设置。ech: ga - 高级设置 : 从
serverless开始。如果 ID 位于其中,写入src/platform/packages/shared/serverless/settings/common/index.ts。如果不在,则在该文件夹中搜索serverless: ga、observability_project、security_project和search_project。忽略vectordb_project。沿每个允许列表的导入关系将常量解析为运行时键,包括从workplace_ai_project之外的其他 package 导出的 ID。将kbn-management/settings/setting_ids映射到observability_project,将observability映射到security_project,将security映射到search_project,将elasticsearch映射到vectordb_project。如果 ID 仅出现在上述四个列表中的部分列表中,则嵌套这些键。如果一个都不在,则写入vectordb。serverless: unavailable kibana.yml: 使用serverless或offeringBasedSchema。写入标量schema.contextRef('serverless')或serverless: ga。serverless: unavailable
Preview
预览
bash
docs-builder
docs-builder serveOn a Kibana PR:
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/<n>/reference/kibana/<page>/YAML that parses is not proof that badges render. Inspect the setting's for .
<dd>dd > p.settings-supported-onbash
docs-builder
docs-builder serve在 Kibana PR 中:
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/<n>/reference/kibana/<page>/仅能成功解析的 YAML 并不能证明徽章会正确呈现。请检查设置的 ,查找 。
<dd>dd > p.settings-supported-onHow-to follow-up
操作指南后续处理
If users need instructions beyond the reference entry:
- Search published docs with the MCP (
elastic-docsorsearch_docs).find_related_docs - Open an issue, or an accompanying PR on the page that already covers that workflow.
elastic/docs-content
Skip this when the reference entry is enough.
如果用户需要参考条目之外的说明:
- 使用 MCP(
elastic-docs或search_docs)搜索已发布文档。find_related_docs - 在 创建一个 issue,或在已经涵盖该工作流的页面上创建配套 PR。
elastic/docs-content
如果参考条目已经足够,则跳过此步骤。
Verification
验证
- YAML file matches kibana.yml vs space vs global
- matches the runtime key at HEAD, or at the merge base when this branch removes the setting
setting - Description, ,
default, and lifecycle follow the docs-builder settings pageapplies_to - kibana.yml matches the Cloud user-settings allowlist in
echelastic/cloud - Advanced Settings matches
serverlessor the nested project allowlists, following each file's importscommon/index.ts - No UI label, test ID, or component name used as the YAML key
setting
- YAML 文件与 kibana.yml、space 或 global 分类一致
- 与 HEAD 处的运行时键一致,或在删除设置的分支中与 merge base 处的运行时键一致
setting - 描述、、
default和生命周期遵循 docs-builder 设置页面applies_to - kibana.yml 与
ech中的 Cloud 用户设置允许列表一致elastic/cloud - 高级设置 与
serverless或嵌套的项目允许列表一致,并遵循每个文件的导入关系common/index.ts - 未将 UI 标签、测试 ID 或组件名称用作 YAML 键
setting