12.3. Crimson 指标
Crimson 有三种方法来报告统计信息和指标:
- PG 统计报告给管理器。
- Prometheus 文本协议。
-
asock
命令。
PG 统计报告到管理器
Crimson 收集 per-pg
、per-pool
,以及 MPGStats
消息中的 per-osd
stats (发送到 Ceph 管理器)。
Prometheus 文本协议
使用 --prometheus-port
命令行选项配置侦听端口和地址。
asock
命令
提供的管理 socket 命令用于转储指标。
语法
ceph tell OSD_ID dump_metrics ceph tell OSD_ID dump_metrics reactor_utilization
示例
[ceph: root@host01 /]# ceph tell osd.0 dump_metrics [ceph: root@host01 /]# ceph tell osd.0 dump_metrics reactor_utilization
在这里,reactor_utilization
是一个可选字符串,用于按前缀过滤转储的指标。