OpenShift Container 레지스트리는 Prometheus 메트릭에 대한 엔드 포인트를 제공합니다. Prometheus는 독립형 오픈 소스 시스템 모니터링 및 경고 툴킷입니다.
메트릭은 레지스트리 엔드 포인트의 /extensions/v2/metrics 경로에 표시됩니다. 그러나 이 경로를 먼저 활성화해야 합니다. 자세한 내용은 확장 레지스트리 구성을 참조하십시오.
다음은 지표 쿼리의 간단한 예입니다.
curl -s -u <user>:<secret> \
http://172.30.30.30:5000/extensions/v2/metrics | grep openshift | head -n 10
HELP openshift_build_info A metric with a constant '1' value labeled by major, minor, git commit & git version from which OpenShift was built.
TYPE openshift_build_info gauge
HELP openshift_registry_request_duration_seconds Request latency summary in microseconds for each operation
TYPE openshift_registry_request_duration_seconds summary
$ curl-s-u<user>:<secret>\
1
http://172.30.30.30:5000/extensions/v2/metrics |grep openshift |head-n10# HELP openshift_build_info A metric with a constant '1' value labeled by major, minor, git commit & git version from which OpenShift was built.# TYPE openshift_build_info gauge
openshift_build_info{gitCommit="67275e1",gitVersion="v3.6.0-alpha.1+67275e1-803",major="3",minor="6+"}1# HELP openshift_registry_request_duration_seconds Request latency summary in microseconds for each operation# TYPE openshift_registry_request_duration_seconds summary
openshift_registry_request_duration_seconds{name="test/origin-pod",operation="blobstore.create",quantile="0.5"}0
openshift_registry_request_duration_seconds{name="test/origin-pod",operation="blobstore.create",quantile="0.9"}0
openshift_registry_request_duration_seconds{name="test/origin-pod",operation="blobstore.create",quantile="0.99"}0
openshift_registry_request_duration_seconds_sum{name="test/origin-pod",operation="blobstore.create"}0
openshift_registry_request_duration_seconds_count{name="test/origin-pod",operation="blobstore.create"}5
Copy to ClipboardCopied!Toggle word wrapToggle overflow