首批通过分布式安全可靠测评,为关键业务系统打造
所有租户的内存信息洞察
更新时间:2025-07-19 13:14:51
本文适用于独立部署 obdiag 的场景,可以一键执行将所有租户的内存信息展示出来。
使用说明
obdiag display scene run --scene=observer.memory [options]
选项说明如下:
| 选项名 | 是否必选 | 数据类型 | 默认值 | 说明 |
|---|---|---|---|---|
| -c | 否 | string | ~/.obdiag/config.yml |
配置文件路径。 |
| --inner_config | 否 | string | 默认为空 | obdiag 自用的配置。 |
| --config | 否 | string | 默认为空 | 需被 obdiag 诊断的集群的配置,固定样式:--config key1=value1 --config key2=value2。
说明支持通过该选项配置的参数可参见 obdiag 配置。 |
使用示例
方式一:无配置文件使用(开箱即用)
obdiag display scene run --scene=observer.memory \
--config db_host=xx.xx.xx.xx \
--config db_port=xxxx \
--config tenant_sys.user=root@sys \
--config tenant_sys.password=***
方式二:有配置文件使用
需要确保已经在 obdiag 配置文件 config.yml 中配置好需要收集节点的登录信息。相关的详细配置介绍,参见 obdiag 配置。
obdiag display scene run --scene=observer.memory