Tridentの指標はどこで定義できますか?
環境
- トライデント
- Prometheus
回答
Tridentの指標の説明は、Tridentのコアアプリケーションコンテナの/metricsエンドポイントでコメントとして参照できます。
例:
[root@rhel3 k8s]# kubectl describe pod/trident-controller-xxxxxxxxx-xxxxx -n trident |grep IP:
IP: 10.36.0.1
IP: 10.36.0.1
[root@rhel3 k8s]# curl http://10.36.0.1:8001/metrics
:
# HELP trident_backend_count The total number of backends
# TYPE trident_backend_count gauge
trident_backend_count{backend_state="online",backend_type="ontap-nas"} 1
trident_backend_count{backend_state="online",backend_type="solidfire-san"} 1
# HELP trident_backend_info Trident backend information
# TYPE trident_backend_info gauge
trident_backend_info{backend_name="BackendForNAS",backend_type="ontap-nas",backend_uuid="e098abb8-8e16-4b4f-a4bc-a6c9557b39b1"} 1
trident_backend_info{backend_name="BackendForSolidFire",backend_type="solidfire-san",backend_uuid="d9d6bef6-eef9-4ff0-b5c8-c69d048b739e"} 1
# HELP trident_build_info Trident build and release information
# TYPE trident_build_info gauge
trident_build_info{build_type="stable",trident_revision="a9aa0658dcb9f27e40b69e80a00c6df5241d00d9",trident_version="20.07.0"} 1
# HELP trident_core_backend_count The total number of backends (deprecated)
# TYPE trident_core_backend_count gauge
trident_core_backend_count{backend_state="online",backend_type="ontap-nas"} 1
trident_core_backend_count{backend_state="online",backend_type="solidfire-san"} 1
# HELP trident_core_backend_count_by_state The total number of backends by state (deprecated)
# TYPE trident_core_backend_count_by_state gauge
trident_core_backend_count_by_state{state="online"} 2
# HELP trident_core_backend_count_by_type The total number of backends by type (deprecated)
# TYPE trident_core_backend_count_by_type gauge
trident_core_backend_count_by_type{type="ontap-nas"} 1
trident_core_backend_count_by_type{type="solidfire-san"} 1
# HELP trident_core_backend_info Trident backend information (deprecated)
# TYPE trident_core_backend_info gauge
trident_core_backend_info{backend_name="BackendForNAS",backend_type="ontap-nas",backend_uuid="e098abb8-8e16-4b4f-a4bc-a6c9557b39b1"} 1
trident_core_backend_info{backend_name="BackendForSolidFire",backend_type="solidfire-san",backend_uuid="d9d6bef6-eef9-4ff0-b5c8-c69d048b739e"} 1
# HELP trident_core_build_info Trident build and release information (deprecated)
# TYPE trident_core_build_info gauge
trident_core_build_info{build_type="stable",trident_revision="a9aa0658dcb9f27e40b69e80a00c6df5241d00d9",trident_version="20.07.0"} 1
# HELP trident_core_node_count The total number of nodes (deprecated)
# TYPE trident_core_node_count gauge
trident_core_node_count 3
# HELP trident_core_operation_duration_in_milliseconds The duration of operations by backend (deprecated)
# TYPE trident_core_operation_duration_in_milliseconds summary
trident_core_operation_duration_in_milliseconds{op="backend_get",success="true",quantile="0.5"} NaN
trident_core_operation_duration_in_milliseconds{op="backend_get",success="true",quantile="0.9"} NaN
:
trident_core_operation_duration_in_milliseconds_sum{op="volume_publish",success="true"} 0
trident_core_operation_duration_in_milliseconds_count{op="volume_publish",success="true"} 1
# HELP trident_core_storage_class_count The total number of storage classes (deprecated)
# TYPE trident_core_storage_class_count gauge
trident_core_storage_class_count 5
# HELP trident_core_volume_total_bytes The total number of bytes in all volumes (deprecated)
# TYPE trident_core_volume_total_bytes gauge
trident_core_volume_total_bytes 0
# HELP trident_node_count The total number of nodes
# TYPE trident_node_count gauge
trident_node_count 3
# HELP trident_ontap_operation_duration_in_milliseconds_by_svm The duration of operations by SVM
# TYPE trident_ontap_operation_duration_in_milliseconds_by_svm summary
trident_ontap_operation_duration_in_milliseconds_by_svm{op="ems-autosupport-log",svm="svm1",quantile="0.5"} NaN
trident_ontap_operation_duration_in_milliseconds_by_svm{op="ems-autosupport-log",svm="svm1",quantile="0.9"} NaN
:
trident_ontap_operation_duration_in_milliseconds_by_svm_sum{op="vserver-show-aggr-get-iter",svm="svm1"} 47
trident_ontap_operation_duration_in_milliseconds_by_svm_count{op="vserver-show-aggr-get-iter",svm="svm1"} 1
# HELP trident_ontap_ops_total The total number of handled ONTAP ZAPI operations
# TYPE trident_ontap_ops_total counter
trident_ontap_ops_total{op="ems-autosupport-log",svm="svm1"} 2
trident_ontap_ops_total{op="net-interface-get-iter",svm="svm1"} 1
:
trident_ontap_ops_total{op="vserver-get-iter",svm="svm1"} 1
trident_ontap_ops_total{op="vserver-show-aggr-get-iter",svm="svm1"} 1
# HELP trident_operation_duration_milliseconds The duration of operations by backend
# TYPE trident_operation_duration_milliseconds summary
trident_operation_duration_milliseconds{operation="backend_get",success="true",quantile="0.5"} NaN
trident_operation_duration_milliseconds{operation="backend_get",success="true",quantile="0.9"} NaN
:
trident_operation_duration_milliseconds_sum{operation="volume_publish",success="true"} 0
trident_operation_duration_milliseconds_count{operation="volume_publish",success="true"} 1
# HELP trident_rest_ops_seconds_total The total number of seconds spent handling REST operations
# TYPE trident_rest_ops_seconds_total summary
trident_rest_ops_seconds_total{op="GET",route="GetBackend",status_code="200",quantile="0.5"} NaN
trident_rest_ops_seconds_total{op="GET",route="GetBackend",status_code="200",quantile="0.9"} NaN
:
trident_rest_ops_seconds_total_sum{op="PUT",route="AddOrUpdateNode",status_code="503"} 0
trident_rest_ops_seconds_total_count{op="PUT",route="AddOrUpdateNode",status_code="503"} 1
# HELP trident_rest_ops_total The total number of handled REST operations
# TYPE trident_rest_ops_total counter
trident_rest_ops_total{op="GET",route="GetBackend",status_code="200"} 4
trident_rest_ops_total{op="GET",route="GetVersion",status_code="200"} 743
:
trident_rest_ops_total{op="PUT",route="AddOrUpdateNode",status_code="201"} 3
trident_rest_ops_total{op="PUT",route="AddOrUpdateNode",status_code="503"} 1
# HELP trident_storageclass_count The total number of storage classes
# TYPE trident_storageclass_count gauge
trident_storageclass_count 5
# HELP trident_volume_total_bytes The total number of bytes in all volumes
# TYPE trident_volume_total_bytes gauge
trident_volume_total_bytes 0
追加情報