configuration_file.md 1.3 KB

基本配置

Kuiper 的配置文件位于 $ kuiper / etc / kuiper.yaml 中。 配置文件为 yaml 格式。

日志级别

basic:
  # true|false, with debug level, it prints more debug info
  debug: false
  # true|false, if it's set to true, then the log will be print to console
  consoleLog: false
  # true|false, if it's set to true, then the log will be print to log file
  fileLog: true

Cli 端口

basic:
  # CLI port
  port: 20498

CLI 服务器监听端口

REST 服务配置

basic:
  # REST service port
  restPort: 9081
  restTls:
    certfile: /var/https-server.crt
    keyfile: /var/https-server.key

restPort

REST http 服务器监听端口

restTls

TLS证书 cert 文件和 key 文件位置。如果 restTls 选项未配置,则 REST 服务器将启动为 http 服务器,否则启动为 https 服务器。

Prometheus 配置

如果 prometheus 参数设置为 true,Kuiper 将把运行指标暴露到 prometheus。Prometheus 将运行在 prometheusPort 参数指定的端口上。

basic:
  prometheus: true
  prometheusPort: 20499

在如上默认配置中,Kuiper暴露于 Prometheusd 运行指标可通过 http://localhost:20499/metrics 访问。