configuration_file.md 1.2 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访问。