云容器引擎 CCE-CCE容器存储(Everest):Prometheus指标采集

时间:2024-04-23 19:45:32

Prometheus指标采集

everest-csi-controller通过端口3225暴露Prometheus metrics指标。您可以自建Prometheus采集器识别并通过http://{{everest-csi-controllerPodIP}}:3225/metrics路径获取everest-csi-controller相关指标。

Prometheus指标暴露仅支持Everest插件2.4.4及以上版本。

表6 关键指标说明

指标名称

指标类型

描述

Labels

举例

everest_action_result_total

counter

everest不同功能的调用情况

action:表示不同功能,详情请参见表7

result:表示调用成功或失败

everest_action_result_total{action="create_snapshot:disk.csi.everest.io",result="success"} 2

everest_function_duration_seconds_bucket

histogram

everest不同功能在不同执行时间下的次数

function:表示不同功能,详情请参见表7

everest_function_duration_seconds_bucket{function="create_snapshot:disk.csi.everest.io",le="10"} 2

everest_function_duration_seconds_sum

histogram

everest不同功能的调用时间总和

function:表示不同功能,详情请参见表7

everest_function_duration_seconds_sum{function="create:disk.csi.everest.io"} 24.381399053

everest_function_duration_seconds_count

histogram

everest不同功能的调用次数

function:表示不同功能,详情请参见表7

everest_function_duration_seconds_count{function="attach:disk.csi.everest.io"} 4

action及function表示不同CSI驱动及其功能,表示为:{功能}:{CSI驱动}。例如create:disk.csi.everest.io,表示功能为创建卷、卷类型为云硬盘。

表7 功能说明

功能名称

功能描述

create

创建卷

delete

删除卷

attach

卷挂载

detach

卷卸载

expand

卷扩容

create_snapshot

创建卷快照

delete_snapshot

删除卷快照

support.huaweicloud.com/usermanual-cce/cce_10_0066.html