AWS CloudWatch를 사용할 경우 CloudWatch Agent를 별개로 설치하게 된다.
그런데 Agent를 설치하지 않아도 CloudWatch를 사용할 수 있는데, 왜 설치하는걸까?
차이점
AWS CloudWatch는 기본적으로 CPU Utilization 같이 호스트에서 감지할 수 있는 Metric을 측정할 수 있다. 다만, OS에서 관리하는 Metric에 대해서는 측정할 수 없다.
당연하다. 메모리와 디스크를 할당하는 주체는 최초 가용량을 할당해준 호스트가 아니라 OS이기 때문이다.
그래서 메모리 사용량, 디스크 사용량, CPU 사용량, 네트워크 인바운드/아웃바운드 크기 등 OS 내부에서 이루어지는 Metric을 측정하기 위해선 CloudWatch Agent 설치가 필수적이다.
Agent를 이용해 구체적으로 어떤 메트릭을 수집할 수 있는지는 아래 공식 문서에 적혀있다.
Metrics collected by the CloudWatch agent - Amazon CloudWatch
Metrics collected by the CloudWatch agent You can collect metrics from servers by installing the CloudWatch agent on the server. You can install the agent on both Amazon EC2 instances and on-premises servers, and on computers running either Linux, Windows
docs.aws.amazon.com
☕️ Networking
기술 직군의 기술적인 교류, 커리어 이야기, 직군 무관 네트워킹 모두 환영합니다!
위클리 아카데미 오픈 채팅방(비밀번호: 9323)
kakaotalk: https://open.kakao.com/o/gyvuT5Yd