[Prometheus] Exporter 추가 방법
additionalScrapeConfigs: - job_name: kubernetes_sd_configs: - role: endpoints이전에 이런식으로 dcgm exporter를 추가해 metric을 수집하라고 했지만 kubernetes cluster내에 있는 모든 pod의 endpoint에 metric을 찾을 수 없다는 not found(404) 에러가 발생하는것을 보고 잘못된 방식이라고 느끼고 다른 방식으로 메트릭을 수집할 수 있는지 알아보았다. 그후 가장 좋은 방법을 찾아 공유하려고 합니다.서비스모니터(ServiceMonitor)란?Prometheus에서 ServiceMonitor는 Kubernetes 클러스터에서 서비스(Service)를 모니터링하기 위한 사용자 정의 리소스(..
개발/Kubernetes
2024. 7. 18. 16:21