OpenSearch Dashboards 项目教程

OpenSearch Dashboards 项目教程

OpenSearch-Dashboards📊 Open source visualization dashboards for OpenSearch.项目地址:https://gitcode.com/gh_mirrors/op/OpenSearch-Dashboards

1. 项目的目录结构及介绍

OpenSearch Dashboards 项目的目录结构如下:

OpenSearch-Dashboards/
├── README.md
├── CODE_OF_CONDUCT.md
├── LICENSE.txt
├── package.json
├── tsconfig.json
├── src/
│   ├── core/
│   ├── plugins/
│   └── server/
├── config/
│   └── opensearch_dashboards.yml
├── data/
├── test/
└── node_modules/

目录结构介绍

  • README.md: 项目介绍和使用说明。
  • CODE_OF_CONDUCT.md: 项目行为准则。
  • LICENSE.txt: 项目许可证。
  • package.json: 项目依赖和脚本配置。
  • tsconfig.json: TypeScript 配置文件。
  • src/: 源代码目录,包含核心功能、插件和服务器代码。
    • core/: 核心功能代码。
    • plugins/: 插件代码。
    • server/: 服务器代码。
  • config/: 配置文件目录。
    • opensearch_dashboards.yml: 主配置文件。
  • data/: 数据存储目录。
  • test/: 测试代码目录。
  • node_modules/: 项目依赖模块。

2. 项目的启动文件介绍

OpenSearch Dashboards 的启动文件主要包括 package.json 中的脚本配置和 src/core/server/index.ts

package.json

package.json 文件中,主要的启动脚本如下:

{
  "scripts": {
    "start": "node scripts/start.js",
    "build": "node scripts/build.js",
    "test": "node scripts/test.js"
  }
}
  • start: 启动开发服务器。
  • build: 构建生产版本。
  • test: 运行测试。

src/core/server/index.ts

src/core/server/index.ts 是服务器的入口文件,负责初始化和启动服务器。

3. 项目的配置文件介绍

OpenSearch Dashboards 的主要配置文件是 config/opensearch_dashboards.yml

config/opensearch_dashboards.yml

该配置文件包含了许多配置项,用于控制 OpenSearch Dashboards 的行为,例如:

server.host: "0.0.0.0"
server.port: 5601
opensearch.hosts: ["http://localhost:9200"]
opensearch.ssl.verificationMode: none
opensearch.username: "admin"
opensearch.password: "admin"
  • server.host: 服务器监听的地址。
  • server.port: 服务器监听的端口。
  • opensearch.hosts: OpenSearch 集群的地址。
  • opensearch.ssl.verificationMode: SSL 验证模式。
  • opensearch.username: OpenSearch 用户名。
  • opensearch.password: OpenSearch 密码。

这些配置项可以根据实际需求进行调整。

OpenSearch-Dashboards📊 Open source visualization dashboards for OpenSearch.项目地址:https://gitcode.com/gh_mirrors/op/OpenSearch-Dashboards

  • 4
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

支然苹

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值