redis-di 监控
通过收集指标并导出到Prometheus来监控Write-behind
用法
Usage: redis-di monitor [OPTIONS]
选项
-
loglevel
:- 类型: Choice(['DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL'])
- 默认值:
info
- 用法:
--loglevel -log-level
-
rdi_host
(必填):- 类型: 字符串
- 默认值:
none
- 用法:
--rdi-host
写后数据库的主机/IP
-
rdi_port
(必填):- 类型: <IntRange 1000<=x<=65535>
- 默认值:
none
- 用法:
--rdi-port
写后数据库的端口
-
rdi_password
:- 类型: 字符串
- 默认值:
none
- 用法:
--rdi-password
写后数据库密码
-
rdi_key
:- 类型: 字符串
- 默认值:
none
- 用法:
--rdi-key
用于身份验证的私钥文件
-
rdi_cert
:- 类型: 字符串
- 默认值:
none
- 用法:
--rdi-cert
用于身份验证的客户端证书文件
-
rdi_cacert
:- 类型: 字符串
- 默认值:
none
- 用法:
--rdi-cacert
用于验证的CA证书文件
-
rdi_key_password
:- 类型: 字符串
- 默认值:
none
- 用法:
--rdi-key-password
用于解锁加密私钥的密码
-
exporter_port
:- 类型:
- 默认值:
9121
- 用法:
--exporter-port
启动导出器的HTTP端口
- 类型:
-
collect_interval
:- 类型:
- 默认值:
5
- 用法:
--collect-interval
指标收集间隔(秒)
- 类型:
-
help
:- 类型: BOOL
- 默认值:
false
- 用法:
--help
显示此消息并退出。
CLI 帮助
Usage: redis-di monitor [OPTIONS]
Monitors Write-behind by collecting metrics and exporting to Prometheus
Options:
-log-level, --loglevel [DEBUG|INFO|WARN|ERROR|CRITICAL]
[default: INFO]
--rdi-host TEXT Host/IP of Write-behind Database [required]
--rdi-port INTEGER RANGE Port of Write-behind Database [1000<=x<=65535;
required]
--rdi-password TEXT Write-behind Database Password
--rdi-key TEXT Private key file to authenticate with
--rdi-cert TEXT Client certificate file to authenticate with
--rdi-cacert TEXT CA certificate file to verify with
--rdi-key-password TEXT Password for unlocking an encrypted private
key
--exporter-port INTEGER RANGE HTTP port to start the exporter on
[1000<=x<=65535]
--collect-interval INTEGER RANGE
Metrics collection interval (seconds)
[1<=x<=60]
--help Show this message and exit.