14.6. DedicatedServiceMonitors

14.6.1. 설명

DedicatedServiceMonitors 리소스를 사용하여 Prometheus 어댑터의 전용 서비스 모니터를 구성할 수 있습니다.

다음과 같이 표시됩니다. K8sPrometheusAdapter

속성유형설명

enabled

bool

enabledtrue 로 설정되면 CMO(Cluster Monitoring Operator)는 kubelet /metrics/resource 끝점을 노출하는 전용 서비스 모니터를 배포합니다. 이 Service Monitor는 honorTimestamps: true 를 설정하고 Prometheus Adapter의 Pod 리소스 쿼리와 관련된 메트릭만 유지합니다. 또한 Prometheus Adapter는 이러한 전용 메트릭을 사용하도록 구성되어 있습니다. 전반적으로 이 기능은 oc adm top pod 명령 또는 Horizontal Pod Autoscaler와 같이에서 사용하는 Prometheus Adapter 기반 CPU 사용량 측정의 일관성을 향상시킵니다.