搜索遥测
您可以使用搜索遥测在 OpenSearch Dashboards 中分析搜索请求的成功或失败性能。OpenSearch 将遥测数据存储在 .kibana_1
索引中。
由于 OpenSearch Dashboards 中有数千个并发搜索请求,因此巨大的流量可能会给 OpenSearch 集群造成显著负载。
关闭搜索遥测后,OpenSearch 集群的性能会更好。
启用搜索遥测
搜索使用遥测默认处于关闭状态。要启用它,您需要在 opensearch_dashboards.yml
文件中将 data.search.usageTelemetry.enabled
设置为 true
。
您可以在 GitHub 上的 opensearch-project 仓库中找到 OpenSearch Dashboards YAML 文件。
在 opensearch_dashboards.yml
文件中启用遥测会覆盖 数据插件配置文件 中搜索遥测的默认设置 false
。
启用或禁用搜索遥测
下表显示了您可以在 opensearch_dashboards.yml
中设置的 data.search.usageTelemetry.enabled
值,以启用或禁用搜索遥测。
OpenSearch Dashboards YAML 值 | 搜索遥测状态:启用或禁用 |
---|---|
true | 启用 |
false | 禁用 |
none | 禁用 |
已启用遥测的 opensearch_dashboards.yml 示例
此 OpenSearch Dashboards YAML 文件摘录显示遥测设置已设置为 true
以启用搜索遥测
# Set the value of this setting to false to suppress
# search usage telemetry to reduce the load of the OpenSearch cluster.
data.search.usageTelemetry.enabled: true